[lug] Date Conversion Routine

Tkil tkil at scrye.com
Mon Jun 19 19:53:59 MDT 2000


if you want to use perl, the Date::Calc module is excellent, as has
been recommended by many people.  there is the slight problem that it
requires installation, tho, since it is partially C based.

a solution using Date::Calc can be found at:

   http://slinky.scrye.com/~tkil/perl/boru

if you cannot install modules, there is a "Time::Local" module that
is a part of the standard perl distribution.  you can do rudimentary
date calculations by bouncing normal dates into unix time_t and
working on them there.  a solution using Time::Local is at:

   http://slinky.scrye.com/~tkil/perl/boru2

if these programs are too terse, let me know.  :)

t.





More information about the LUG mailing list