开发者

How to get the extract the Time zone from systemTimeZone(NSTimeZone)

开发者 https://www.devze.com 2023-02-06 21:52 出处:网络
can any one get me the idea in extracting the Time zone from systemTimeZone(NSTimeZone) i have added the sample along with this.

can any one get me the idea in extracting the Time zone from systemTimeZone(NSTimeZone)

i have added the sample along with this.

NSTimeZone *localTime = [NSTimeZone systemTimeZone];
    NSLog(@" - curr开发者_JAVA百科ent  local timezone  is  %@",localTime);

Im getting Out put as follows - current local timezone is Asia/Kolkata (GMT+05:30) offset 19800

From above out put how to get the zone alone .ie- only Asia/Kolkata

Please help me out in this.

Thanks in advance... Siva


you can get that by [localTime name]; i guess...

0

精彩评论

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