Hey all,
Is there an iPhone API to determine if the iPhone is set to 12 or 24 time mode?
I want my apps to print time according to the iPhone system settings.
Thanks.
Hey all,
Is there an iPhone API to determine if the iPhone is set to 12 or 24 time mode?
I want my apps to print time according to the iPhone system settings.
Thanks.
I need to determine 12 or 24 hour time for puproses other than printing time. NSDateFormatter cannot answer directly, so I need some other way. How can I deal with that task?
Kind of ugly, but you could create a date of today at 1:00 PM and then get the string value from NSDateFormatter. If it's 13:00 then you know it's 24-hour. The value could then be cached so you only do it once.