Re: 12 hr vs 24 hr time display
Re: 12 hr vs 24 hr time display
- Subject: Re: 12 hr vs 24 hr time display
- From: Alex Zavatone <email@hidden>
- Date: Tue, 03 Jan 2017 18:51:23 -0600
On Jan 3, 2017, at 3:02 PM, Sandor Szatmari wrote:
> Gary,
>
>> On Jan 3, 2017, at 14:52, Gary L. Wade <email@hidden> wrote:
>>
>> Is there a problem with using +[NSDateFormatter localizedStringFromDate:dateStyle:timeStyle:]? Depending on your needs, you might also consider +[NSCalendar autoupdatingCurrentCalendar].
>
> I am looking for detecting whether or not the system defaults to 12 or 24 hr time. The obj-c method I'm already 'parsing', -dateFormatFromTemplate:::, returns a template string with well defined formatting tokens that are easy to detect. Plus they directly reflect the user's Locale & Region settings.
I'd expect that would be a function of the language and the locale, possibly just the locale. Do you care what it defaults to or what it's currently set to?
- Z
_______________________________________________
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