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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to