• 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
Re: Date Formatter fun
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date Formatter fun


  • Subject: Re: Date Formatter fun
  • From: Jeremy Dronfield <email@hidden>
  • Date: Mon, 14 Feb 2005 11:42:47 +0000


On 14 Feb 2005, at 2:39 am, Duncan Campbell wrote:

Hey folks - i'm using a dateformatter to get a nice looking datetime:

[today descriptionWithCalendarFormat:@"%a %I:%M %p"]

however, I'm a little annoyed that the "hour" formatter (the %I) always gives the hour as a 2-digit - i.e. 9:45am will be formatted as 09:45am.

Use %1I for the hour to chop the leading zero.

Regards,

-Jeremy

===================================
SkoobySoft, home of viJournal and Skooby Renamer
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================

_______________________________________________
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


References: 
 >Date Formatter fun (From: Duncan Campbell <email@hidden>)

  • Prev by Date: Re: Newbie
  • Next by Date: Re: AuthorizationExecuteWithPrivileges(): implementation bug or correct behavior?
  • Previous by thread: Date Formatter fun
  • Next by thread: UDP SOCKETS!!
  • Index(es):
    • Date
    • Thread