Re: Getting time zone abbreviations
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