开发者

Time Zone offset number in Objective-c?

开发者 https://www.devze.com 2022-12-26 21:37 出处:网络
How can I get the Timezone offset in Objective-C (for iPhone OS 3)? For example, GMT -5 is US Eastern Time. I wan开发者_如何学编程t the -5 part of it. How would I do so?[[NSTimeZone localTimeZone] se

How can I get the Timezone offset in Objective-C (for iPhone OS 3)?

For example, GMT -5 is US Eastern Time. I wan开发者_如何学编程t the -5 part of it. How would I do so?


[[NSTimeZone localTimeZone] secondsFromGMT] / 3600
0

精彩评论

暂无评论...
验证码 换一张
取 消