Re: Julian date
Re: Julian date
- Subject: Re: Julian date
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 7 Jan 2010 11:05:30 -0700
On Jan 7, 2010, at 9:44 AM, Alexander Cohen wrote:
> How should i go about creating a NSDate object from a julian date NSTimeInterval.
You'd have to subtract 86,400 seconds for each leap day that occurred on the Julian calendar that did not occur on the Gregorian calendar starting from the epoch. And your date's epoch has to be something that NSDate will understand, like either the Unix epoch (January 1, 1970) or Mac OS X epoch (January 1, 2001).
This, of course, means that you don't actually have to subtract anything until March 1, 2100...
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: | |
| >Julian date (From: Alexander Cohen <email@hidden>) |