• 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: Determining user's clock preference on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining user's clock preference on iOS


  • Subject: Re: Determining user's clock preference on iOS
  • From: David Duncan <email@hidden>
  • Date: Thu, 23 Feb 2012 11:15:38 -0800

On Feb 22, 2012, at 10:50 PM, Rick Mann wrote:

> Unfortunately, there's no format specifier for the hours of the day that indicates "use the user's preferred format."
>
> If I could determine the user's preference, then I'd just format it appropriately. Alternatively, I can use the "short" format style, and then parse out the AM/PM, but that seems more fragile across locales (are there locales that use something other than "am" and "pm"?).
>
> Any suggestions?


I think this is what +[NSDateFormatter dateFormatFromTemplate:options:locale:] is designed to do.
--
David Duncan

_______________________________________________

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: 
 >Determining user's clock preference on iOS (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: NSView mouseDown truncated coordinates
  • Next by Date: Re: Determining user's clock preference on iOS
  • Previous by thread: Re: Determining user's clock preference on iOS
  • Next by thread: ImageCapture + ImageKit problem...
  • Index(es):
    • Date
    • Thread