NSDateFormatter or NSDate or whatever
NSDateFormatter or NSDate or whatever
- Subject: NSDateFormatter or NSDate or whatever
- From: Alex Kac <email@hidden>
- Date: Sat, 10 Jan 2009 21:05:22 -0600
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 (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