How to get timezone extract from systemTimeZone (NSTimeZone)

can anyone get me an idea when retrieving timezone from systemTimeZone (NSTimeZone)

I added a sample along with this.

NSTimeZone *localTime = [NSTimeZone systemTimeZone];
    NSLog(@" - current  local timezone  is  %@",localTime);

Im get Out as follows - current local time zone - Asia / Calcutta (GMT + 05: 30) - offset 19800

On top, set up how to get the zone alone. only Asia / Calcutta

Please help me with this.

Thanks in advance ... Siva

+3
source share
1 answer

you can get it [localTime name];, i think ...

+8
source

Source: https://habr.com/ru/post/1787404/


All Articles