in reply to Calculating between times

I need to know how to make today's date (localtime()) put the day, month and year in a format like: 01.08.04.
I use POSIX::strftime() for most of my date formatting.
Can someone show me how I would compare a date string like 01.08.04 with a different $time?
If you have your times in seconds since epoch (and you don't care about too much exactness:
if ($time < time - $days * 24 * 60 * 60) { .... }
If you have formatted dates, or higher standards, go for Date::Manip.

HTH,
Joost.

Replies are listed 'Best First'.
Re: Re: Calculating between times
by Anonymous Monk on Jan 08, 2004 at 18:25 UTC
    What do you mean by epoch? Just an idea, is it possible to save $time in a huge mess like 1233455763432 where I could always subtract it from earlier times? If so, how could I do that? I could just setup another hash just for times like this and not worry about playing with the formatting.