Is it possible to get current time of other cities from code?(for example current time of Paris)
+3
A:
Here is how to get it:
[NSTimeZone setDefaultTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"CEST"]];
NSLog(@"Paris time: %@", [[NSDate date] descriptionWithLocale:nil ]);
Paul Ardeleanu
2010-10-31 20:26:56
A list of timezone abbreviations is available here: http://www.timeanddate.com/library/abbreviations/timezones/
Paul Ardeleanu
2010-10-31 20:28:58
@Paul Ardeleanu and NSTimeZone supports 48 out of those 250 abbreviations.
fluchtpunkt
2010-10-31 21:56:07