in reply to Comparing two dates and getting back difference in days

How about the Delta_Days function in Date::Calc? Date_Cmp is just like cmp, returning +1, 0, or -1 to indicate greater than, equal, or less than.

The PerlMonk tr/// Advocate
  • Comment on Re: Comparing two dates and getting back difference in days