• 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
time format without leading zero
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: using apple material?
  • Next by Date: Re: Memory usage
  • Previous by thread: Re: using apple material?
  • Next by thread: Bindings problems...
  • Index(es):
    • Date
    • Thread