• 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: NSDate's descriptionwithLocale method output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDate's descriptionwithLocale method output


  • Subject: Re: NSDate's descriptionwithLocale method output
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 25 Nov 2008 11:16:24 -0700


On Nov 25, 2008, at 11:12 AM, Arun wrote:

Thanks for the suggestion. But i have a requirement where in if the user changes the format of date and time in
the system, the same format should be presented back to him. So i thought descriptionWithLocale will take care of
the change user makes to his settings. So if i use NSDateFormatter, how will handle this situation.?any clues?


NSDateFormatter changes with the user's preferences if you are using the 10.4 formatter style and set the date/time style. If you want to remove something from the format afterwards, such as the time zone (which is not normally included in a formatted date, unless the user is using a custom format), then you can edit the date format string.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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


References: 
 >NSDate's descriptionwithLocale method output (From: Arun <email@hidden>)
 >Re: NSDate's descriptionwithLocale method output (From: Nick Zitzmann <email@hidden>)
 >Re: NSDate's descriptionwithLocale method output (From: Arun <email@hidden>)

  • Prev by Date: Re: NSSTextView
  • Next by Date: Re: Killing a Thread
  • Previous by thread: Re: NSDate's descriptionwithLocale method output
  • Next by thread: awakeFromNib is not called in Tiger [PPC], but called in Leopard [Intel]
  • Index(es):
    • Date
    • Thread