• 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: NSDateFormatter strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDateFormatter strangeness


  • Subject: Re: NSDateFormatter strangeness
  • From: "Kyle Sluder" <email@hidden>
  • Date: Mon, 17 Nov 2008 18:38:44 -0500

I think it's a known issue.  The documentation for -[NSDate
descriptionWithCalendarFormat:timeZone:locale:] (which I can only
assume that -[NSDate description] calls) has this caveat:

"There are several problems with the implementation of this method
that cannot be fixed for compatibility reasons. To format a date
correctly, you should consider using a date formatter object instead
(see NSDateFormatter and Data Formatting Programming Guide for
Cocoa)."

So, don't log NSDate objects, send them through an NSDateFormatter instead.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: NSDateFormatter strangeness
      • From: Greg Hoover <email@hidden>
References: 
 >NSDateFormatter strangeness (From: Greg Hoover <email@hidden>)

  • Prev by Date: Re: Trouble with openFileWithoutUI
  • Next by Date: Re: OutlineView, bindings and array of NSDictionaries.
  • Previous by thread: NSDateFormatter strangeness
  • Next by thread: Re: NSDateFormatter strangeness
  • Index(es):
    • Date
    • Thread