in reply to Subtracting and Comparing Two Dates

I think you probably want to look at POSIX (for strftime) and Time::Local qw(timelocal) as I discovered a year or so ago in Fast date parsing — although, for totally different reasons.

Without being able to use Date::Manip or Date::Calc (why again?) — I would personally probalby convert the dates to epoch seconds (strftime's %s) and subtract those. It'd be a bit more reliable than subtracting ... er, the mess you're subtracting.

-Paul

Replies are listed 'Best First'.
Re^2: Subtracting and Comparing Two Dates
by Anonymous Monk on Jan 08, 2007 at 22:32 UTC
    I don't have Time::Piece or Date::Calc modules loaded for the version of Perl I am working with and as of right now its not recommended that I load them.