Posted By

saturngod on 10/06/10


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

bobbym245
Tintenklecks
cnathan


Get TimeZone Name and Abbreviation List


 / Published in: Objective C
 

  1. NSArray *timezoneNames = [NSTimeZone knownTimeZoneNames];
  2. for (NSString *name in
  3. [timezoneNames sortedArrayUsingSelector:@selector(compare:)])
  4. {
  5. NSLog(@"%@",name);
  6. }
  7.  
  8. NSArray *abbrev=[NSTimeZone abbreviationDictionary];
  9. for(NSString *name in abbrev)
  10. {
  11. NSLog(@"%@",name);
  12. }

Report this snippet  

You need to login to post a comment.