2011/9/6 Zefram <[email protected]>
> Olivier Mengu? wrote:
> >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.
>
> Date::ISO8601 would appear to be what you want.
>
Unfortunately Date::ISO8601::ymd_to_cjdn is much slower than
Time::JulianDay::julian_day:
Rate Date::ISO8601 Time::JulianDay Modified T::JD
Date::ISO8601 75997/s -- -73% -74%
Time::JulianDay 280501/s 269% -- -2%
Modified T::JD 287425/s 278% 2% --
(the last row/col is my optimised version of Time::JulianDay)
Olivier.