in reply to Help sorting dates

You can create your own Date/Time manipulation module, and overload the >, <, =, >=, !=, <= functions, if you want to work with dates in an OO way, so you could do something like:
if ( $timestamp1 > $timestamp2 ) ..or.. if ($timestamp1 == $timestamp2 ) ..and so on..

I've something like that implemented at work, using Date::Calc as backend of our date manipulation module, Date::Calc its flexible and fast.