time format without leading zero
time format without leading zero
- Subject: time format without leading zero
- From: Chuck Soper <email@hidden>
- Date: Thu, 24 Mar 2005 18:17:56 -0800
Hello,
I would like display the time using NSCalendarDate without a leading
zero. This is not explained here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/DataFormatting/Concepts/DateFormatters.html#//apple_ref/doc/uid/20000194/CJBFEHBD>
I discovered my value for NSTimeFormatString is: "%1I:%M:%S %p"
Are "%1I" and "%1H" the way to specify hours without a leading zero?
Is this standard C? Where is this documented?
Here's how I got the time format string:
NSString *timeFormat = [[NSUserDefaults
standardUserDefaults]stringForKey:NSTimeFormatString];
Thanks,
Chuck
P.S. It's Mac OS X's birthday today, isn't it?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden