I am on the iPhone so its similar to the Leopard environment except whats deprecated on Leopard is simply not available on the iPhone. In most places of our code we can use the built in styles of NSDateFormatter simply. But in one place I need to know if the user is setup for AM/PM or 24 hours or whatnot. An NSDateFormatter doesn't work for us here.

All the docs I find on the iPhone just send me back to NSDateFormatter. Now why does NSDateFormatter not work? Because when I need to get and draw a separate shorthand for say "5pm" or "17:00" NSDateFormatter does not give me the ability to do that unless I already know if the user is using AM/PM or 24 hour formats.

The best I can find is perhaps to try and use NSDateFormatter, then get the dateFormat. Then try to see if its using HH or hh. But that feels like using a jackhammer to open a nut. It seems like there has to be some simple way to simply get this info. Help?

--
Alex Kac - President and Founder
Web Information Solutions, Inc.

"It is useless for sheep to pass a resolution in favor of vegetarianism while wolves remain of a different opinion."
-- William Randolph Inge





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to