• 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 / NSXMLParser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDate / NSXMLParser


  • Subject: Re: NSDate / NSXMLParser
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 3 Nov 2009 13:06:34 -0800

On Tue, Nov 3, 2009 at 12:56 PM, David Rowland <email@hidden> wrote:
> But NSDate does have a knowledge of time zones. The reason I am doing this
> it to do some arithmetic on the dates - like this,

No, it does not.  NSDate refers to a point in time ("seven seconds
after the big bang"), not to how anyone might describe that point in
time ("January 15, 6123457892389 B.C. 00:00:07 EDT", give or take a
few millennia :-).

If you want to do anything with time zones, you need to interpret the
NSDate relative to a time zone.

--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

References: 
 >NSDate / NSXMLParser (From: David Rowland <email@hidden>)
 >Re: NSDate / NSXMLParser (From: Nick Zitzmann <email@hidden>)
 >Re: NSDate / NSXMLParser (From: David Rowland <email@hidden>)
 >Re: NSDate / NSXMLParser (From: Nick Zitzmann <email@hidden>)
 >Re: NSDate / NSXMLParser (From: David Rowland <email@hidden>)

  • Prev by Date: Re: NSDate / NSXMLParser
  • Next by Date: Re: NSDate / NSXMLParser
  • Previous by thread: Re: NSDate / NSXMLParser
  • Next by thread: Re: NSDate / NSXMLParser
  • Index(es):
    • Date
    • Thread