I'd like to do some timezone calculation, using the following API:
NSTimeZone *some_time_zone = [NSTimeZone timeZoneWithAbbreviation:name];
however, I am not sure where to find the supported list of abbreviation
names. For example, what is the name
for the timezone of Siena Italy?
Try
[NSTimeZone abbreviationDictionary]
or[NSTimeZone knownTimeZoneNames]
.Swift 3.0:
Code
Output