• 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: NSCalendar date calculation anomaly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCalendar date calculation anomaly


  • Subject: Re: NSCalendar date calculation anomaly
  • From: Greg Guerin <email@hidden>
  • Date: Wed, 28 Apr 2010 13:12:13 -0700

A couple suggestions:

If you always calculate using noon on any given date, rather than midnight, then DST transitions won't affect the year/month/day components.

If you don't want to use noon, then NSTimeZone daylightSavingTimeOffsetForDate: should be taken into account.

  -- GG

_______________________________________________

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


  • Prev by Date: Re: CFUUID question
  • Next by Date: Archiving NSBlockPredicate and NSPredicate date functions
  • Previous by thread: Re: NSCalendar date calculation anomaly
  • Next by thread: NSKeyedArchiver and NSPoints
  • Index(es):
    • Date
    • Thread