in reply to date comparison

You can use Date::Manip to obtain the delta between one date and the other. Here's an example:
use Date::Manip; $date1=&ParseDate('2004-10-28'); $date2=&ParseDate('2003-10-23'); $delta=&DateCalc($date1,$date2,\$err,1); print $delta."\n";
The content of $delta is a string which you have to know how to read. The format is:
YY:MM:WK:DD:HH:MM:SS (the years, months, etc. between the two)
Actually, there are several options for date comaprison. Read perldoc Date::Manip for more information.

Michele.

Replies are listed 'Best First'.
Re: Re: date comparison
by TVSET (Chaplain) on May 20, 2003 at 14:42 UTC
    From the rumors I've heard, Date::Manip is considered to be slow and heavy. You might gain something by splitting the date into year, month, and date and feeding it to Date_to_Time sub from the Date::Calc module. Works like a charm too, you know. :)

    Leonid Mamtchenkov aka TVSET