2011/9/6 Rothenmaier, Deane C. <[email protected]> > Zefram, > > I think Olivier is seeking conversions between "regular" date and JDN, and > maybe vice-versa. >
Yes, exactly. > Olivier, if you Google Julian Date Conversion, or some such, you'll find > MANY Gregorian<->JDN conversion formulae. Here's one that I ended up using. > The site has a lot of information about JDNs in general. Also, since it's an > astronomy site, it uses a very robust algorithm. Have fun! > > http://www.astro.uu.nl/~strous/AA/en/reken/juliaansedag.html > Thanks for your help, but I do not plan to reimplement the algorithm myself. I prefer to use a trusted implementation already available on the CPAN. By trusted CPAN distribution, I mean: - implementing a known and documented algorithm (with references to the source) - having a good test suite - no bugs opened regarding the calculation (but bugs reported/resloved/closed are good: they show the distribution is used in the wild) - having the blessings of people working with dates: that's why I'm asking on this list. So far, every site I've seen (Time::JulianDay<https://metacpan.org/source/MUIR/Time-modules-2011.0517/lib/Time/JulianDay.pm#L25>, Wikipedia (en)<http://en.wikipedia.org/wiki/Julian_Day#Converting_Gregorian_calendar_date_to_Julian_Day_Number>, astro.uu.nl, hermetic.ch) uses a different formula and I'm a bit confused. Olivier. PS: reply to the mailing list,
