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

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

  • Prev by Date: Re: iPhone: validate a NSString for US zipcode
  • Next by Date: Re: iPhone: validate a NSString for US zipcode
  • Previous by thread: Julian date
  • Next by thread: Re: Julian date
  • Index(es):
    • Date
    • Thread