Re: 24-hour default
Re: 24-hour default
- Subject: Re: 24-hour default
- From: The Karl Adam <email@hidden>
- Date: Thu, 20 Oct 2005 11:14:46 -0400
yes, and NSCalendarDate returns the current user's setting for the
formatting in that locale. But if you must do it yourself, the key
your looking for is NSTimeFormatString in the user locale settings in
the user defaults domain. It doesn't tell you whether they have AM/PM
or 24hour time, but instead gives you their time format string which
should take into account 24hr time preferences.
The rest of the local settings are in User defaults:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSUserDefaults.html#//apple_ref/doc/c_ref/NSAMPMDesignation
On 10/19/05, Raffael Cavallaro <email@hidden> wrote:
>
> On Oct 19, 2005, at 3:08 AM, Chuck Soper wrote:
>
> > I believe that I need to determine if the current locale uses a 24-
> > hour time format or not.
>
> Actually, you need to determine what the individual user's
> preferences for 12/24 hour clock are since the user can set this
> option in the Date and Time System Preferences panel regardless of
> what the default is for the locale.
>
> regards,
>
> Ralph
>
> Raffael Cavallaro, Ph.D.
> email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden