Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I get a list of abbreviations for timeZoneWithAbbreviation?

Tags:

iphone

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?

like image 414
ohho Avatar asked May 23 '10 15:05

ohho


People also ask

How do you write different time zones?

Reference to a specific time and zone would follow standard guidelines with the zone in parentheses: 4:42 p.m. (PST), 11:03 a.m. (MDT), 2:30 p.m. (CST), 10:00 P.M. (EST). AP on the other hand advises to capitalize the full name of each time zone: Pacific/Mountain/Central/Eastern Standard Time.

How do you abbreviate time zone in C#?

You can go from a . Net DateTime or DateTimeOffset with a TimeZoneInfo , to a NodaTime Instant and DateTimeZone . From there, you can get the abbreviation name.

What is LCL time?

Your LCL is separated or torn completely and may take eight to 12 weeks to heal. You'll use a hinged brace for several months.


2 Answers

Code

NSLog(@"timezones: %@", [NSTimeZone abbreviationDictionary]); 

Output

timezones: {     ADT = "America/Halifax";     AKDT = "America/Juneau";     AKST = "America/Juneau";     ART = "America/Argentina/Buenos_Aires";     AST = "America/Halifax";     BDT = "Asia/Dhaka";     BRST = "America/Sao_Paulo";     BRT = "America/Sao_Paulo";     BST = "Europe/London";     CAT = "Africa/Harare";     CDT = "America/Chicago";     CEST = "Europe/Paris";     CET = "Europe/Paris";     CLST = "America/Santiago";     CLT = "America/Santiago";     COT = "America/Bogota";     CST = "America/Chicago";     EAT = "Africa/Addis_Ababa";     EDT = "America/New_York";     EEST = "Europe/Istanbul";     EET = "Europe/Istanbul";     EST = "America/New_York";     GMT = GMT;     GST = "Asia/Dubai";     HKT = "Asia/Hong_Kong";     HST = "Pacific/Honolulu";     ICT = "Asia/Bangkok";     IRST = "Asia/Tehran";     IST = "Asia/Calcutta";     JST = "Asia/Tokyo";     KST = "Asia/Seoul";     MDT = "America/Denver";     MSD = "Europe/Moscow";     MSK = "Europe/Moscow";     MST = "America/Denver";     NZDT = "Pacific/Auckland";     NZST = "Pacific/Auckland";     PDT = "America/Los_Angeles";     PET = "America/Lima";     PHT = "Asia/Manila";     PKT = "Asia/Karachi";     PST = "America/Los_Angeles";     SGT = "Asia/Singapore";     UTC = UTC;     WAT = "Africa/Lagos";     WEST = "Europe/Lisbon";     WET = "Europe/Lisbon";     WIT = "Asia/Jakarta"; } 
like image 148
neoneye Avatar answered Sep 23 '22 02:09

neoneye


Try [NSTimeZone abbreviationDictionary] or [NSTimeZone knownTimeZoneNames].

like image 21
Paul Lynch Avatar answered Sep 20 '22 02:09

Paul Lynch