【发布时间】:2015-03-11 15:58:06
【问题描述】:
NSDate 类不存储有关时区的信息。我必须单独存储NSTimeZone。我找不到任何从字符串中获取时区的方法,例如:"2015-01-09T00:00:00+02:00" 或 "2015-01-09T02:00:00Z。你能帮帮我吗?
【问题讨论】:
-
是的,我明白了"+02:00" Z 相当于 "00:00"
-
一般来说,你不能。在the timezone tag wiki 中阅读“时区!= 偏移量”。
标签: ios timezone nsdate nstimezone