Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取 Objective-C 中的时区偏移量(适用于 iPhone OS 3)?
例如,GMT -5是美国东部时间。我想要-5它的一部分。我该怎么做?
GMT -5
-5
[[NSTimeZone localTimeZone] secondsFromGMT] / 3600