--On Monday, October 13, 2003 1:34 PM -0700 Jorge Barrios <[EMAIL PROTECTED]> wrote:

[EMAIL PROTECTED] (Mark Lobue) writes:

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>
> It's fair enough to use 86,400 sec in a day. But what about
> adding days or

Adding days is simply adding multiples of 86400, 1 for each day, to the
epoch time, then converting to m/d/y format using any routine you like.

> months?


Might also want to check the modules in CPAN. DateTime looks like a likely candidate, and if not I am sure there is something there to manipulate time and dates.

Such as Date::Calc and Date::Manip. Date::Manip is probably the more capable of the two (depending on how you define capable), but it's slower as well, as it's written entirely in Perl. Date::Calc uses a C library for speed, but doesn't do as much as Date::Manip.




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to