• 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
Re: Getting time zone abbreviations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting time zone abbreviations


  • Subject: Re: Getting time zone abbreviations
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Fri, 18 Jun 2010 23:31:25 -0500

On Fri, Jun 18, 2010 at 11:25 PM, Rick Mann <email@hidden> wrote:
> NSTimeZone* tz = [NSTimeZone timeZoneWithName: @"UTC"];
> NSString* abv = tz.abbreviation;
>
> returns "GMT+00:00". Not very nice.

I was trying your example (Asia/Oral) on 10.6.4 but couldn't get the
response you want. Just GMT+05:00. I thought that -[NSTimeZone
localizedName:locale:] looked promising, but I couldn't get a
combination that gave anything other than GMT+05:00. I tried:

- currentLocale
- initWithLocaleIdentifier:@"kk"
- initWithLocaleIdentifier:@"kk_KZ"

Nada.
_______________________________________________

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

References: 
 >Getting time zone abbreviations (From: Rick Mann <email@hidden>)
 >Re: Getting time zone abbreviations (From: David Rowland <email@hidden>)
 >Re: Getting time zone abbreviations (From: Rick Mann <email@hidden>)
 >Re: Getting time zone abbreviations (From: David Rowland <email@hidden>)
 >Re: Getting time zone abbreviations (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Getting time zone abbreviations
  • Next by Date: Re: Getting time zone abbreviations
  • Previous by thread: Re: Getting time zone abbreviations
  • Next by thread: Re: Getting time zone abbreviations
  • Index(es):
    • Date
    • Thread