Re: [PBML] Converting Date to Seconds
- Mike D <mikedpan@...> asked:
: Is there a function I can use to convert a date into seconds, so that I
: may compare several different times easily? I was thinking something
: along the lines of converting back to the time() standard and using that
: to compare my dates.
Check out the Time::Local module that currently comes bundled
with perl. It includes timelocal() and timegm():
$time = timelocal($sec,$min,$hours,$mday,$mon,$year);
$time = timegm($sec,$min,$hours,$mday,$mon,$year);
Charles K. Clarkson
So which is the insane one - Pinky or The Brain?