in reply to Comparing time
Would help if we could see your code. You can check Date::Calc, Date::Manip and DateTime for date and time calculations.
Igor 'izut' Sutton your code, your rules.