• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting time zone abbreviations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting time zone abbreviations


  • Subject: Getting time zone abbreviations
  • From: Rick Mann <email@hidden>
  • Date: Fri, 18 Jun 2010 18:38:44 -0700

iPhone

Hi. I need to display the time zone in which a particular time is displayed. The time zone is created from its full POSIX name (i.e. "Asia/Oral"), but when I ask the NSTimeZone for its abbreviation, I often get abbreviations in the form of "GMT+05:00" instead of "RST" (or whatever is appropriate for that time zone).

Time Zone abbreviations are not unique across the world; that's okay. What I want is for a user local to Asia/Oral to see the 2-4 letter abbreviation displayed and understand what he's seeing.

There is an abbreviation dictionary in iPhone OS, but it goes the wrong way. It uses the abbreviations as keys, and the POSIX names as values. But POSIX names are unique, while abbreviations are not, so this is a very US-centric dictionary.

Is there any way to get short abbreviations for a TimeZone? I need it short due to limited space. I need a common abbreviation due to users not knowing POSIX timezone names.

Thanks!

--
Rick_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting time zone abbreviations
      • From: David Rowland <email@hidden>
  • Prev by Date: Re: NSTreeController and insertObject:atArrangedObjectIndexPath:
  • Next by Date: autorelease: how does this work!? (if at all)
  • Previous by thread: What's wrong with this approach ?
  • Next by thread: Re: Getting time zone abbreviations
  • Index(es):
    • Date
    • Thread