小编har*_*yap的帖子

如何获得目标c中的当前时区

我需要为当前位置获取时区,例如-5或+3等等.我无法这样做.我使用的是datecomponents:

// Turn the date into Integers
NSInteger year = [dateComponents year];
NSInteger month = [dateComponents month];
NSInteger day = [dateComponents day];
Run Code Online (Sandbox Code Playgroud)

cocoa objective-c

3
推荐指数
1
解决办法
5511
查看次数

标签 统计

cocoa ×1

objective-c ×1