• 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: 12 hr vs 24 hr time display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: 12 hr vs 24 hr time display
      • From: Sandor Szatmari <email@hidden>
References: 
 >12 hr vs 24 hr time display (From: Sandor Szatmari <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: Sandor Szatmari <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: "Gary L. Wade" <email@hidden>)
 >Re: 12 hr vs 24 hr time display (From: Sandor Szatmari <email@hidden>)

  • Prev by Date: Re: 12 hr vs 24 hr time display
  • Next by Date: Re: 12 hr vs 24 hr time display
  • Previous by thread: Re: 12 hr vs 24 hr time display
  • Next by thread: Re: 12 hr vs 24 hr time display
  • Index(es):
    • Date
    • Thread