• 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: Scott Ribe <email@hidden>
  • Date: Wed, 28 Apr 2010 08:56:32 -0600

OK, I get it. It's keeping the time of day the same in my local time zone, not UTC. To get the result I want, I need to:

create the reference date
subtract it's utc offset
add days

Instead of:

create the reference date
add days
subtract the utc offset of the result.


--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice




_______________________________________________

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: 
 >NSCalendar date calculation anomaly (From: Scott Ribe <email@hidden>)
 >Re: NSCalendar date calculation anomaly (From: Kubernan <email@hidden>)
 >Re: NSCalendar date calculation anomaly (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: NSCalendar date calculation anomaly
  • Next by Date: Re: Finder file label from cocoa?
  • Previous by thread: Re: NSCalendar date calculation anomaly
  • Next by thread: Re: NSCalendar date calculation anomaly
  • Index(es):
    • Date
    • Thread