是的,这是一个 iOS 编程问题。
我需要计算 RMS Titanic 沉没 100 周年的确切时间。
It sunk at 15th April 1912 2:20 a.m.
你说的愚蠢的问题。100周年是
15th April 1912 2:20 a.m.
+100 years
15th April 2012 2:20 a.m.
但我希望在世界上的任何时区准确地发出警报并且需要处理时区,并且像英国夏令时提前一小时但它直到 1918 年才生效......但截至今天 2012 年 3 月 25 日伦敦在英国夏令时,所以提前一小时。
我对时区感到困惑。我们有 GMT 和 UTC。这些船在比伦敦早几个小时的 49° 56' 49" W、41° 43' 32" N 处沉没。-49.94822196927015 41.72713826043066
Whats the correct way to enter a historic date into NSCalendar
and to add 100 years to it exactly and get back the right time
in the users current timezone?
我注意到 NSCalendar 选项中有日语和伊斯兰日历格式。iOS 设备可以将日期更改为这些日历吗?如果是这样的话。我将如何从公历转换为伊斯兰教?
不错的大脑益智游戏,开始你的一周:)