From: Richard J. <ri...@an...> - 2004-08-06 14:10:17
|
Attached is an implementation of the important parts of Perl's Date::Calc module in Objective CAML. The coverage is about 50% - if I feel inspired I'll make up the other 50% later this afternoon. I deliberately omitted some of the functions in Perl Date::Calc which involved either i18n or access to the system clock. (Access to the system clock is already adequately provided by the Unix module). There is also a test suite which covers some of the tests supplied in Date::Calc. It's definitely a good idea to include the tests with ExtLib, and to have them run on a regular basis. This code is very much a translation of the Perl source code, which is distributed under either Artistic or GPL or LGPL. I've asked the upstream author if the linking exception is possible, but have received no reply yet. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MONOLITH is an advanced framework for writing web applications in C, easier than using Perl & Java, much faster and smaller, reusable widget-based arch, database-backed, discussion, chat, calendaring: http://www.annexia.org/freeware/monolith/ |