Le 6 septembre 2011 17:37, Rothenmaier, Deane C. < [email protected]> a écrit :
> Well, chacun à son goût, and all that... > > Anyway, I agree that using ready-made solutions is often the best route, > but sometimes it's a fun exercise to cobble one's own solution, which is > what I did with JDNs in the app I maintain. Also, sometimes it's quicker to > gin up code for an algorithm than to search through oodles of libraries > trying to find "just the right one." > The problem is not just to find the good algorithm: it is in fact much harder to find a good testsuite to validate an implementation, as algorithms are too often "as is". I've been able to hijack the Date::ISO8601 test suite (thanks Zefram), to check better that Time::JulianDay works as advertised. I love Perl and the CPAN! https://gist.github.com/1198087 Olivier.
