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 you have formatted dates, or higher standards, go for Date::Manip.if ($time < time - $days * 24 * 60 * 60) { .... }
HTH,
Joost.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Calculating between times
by Anonymous Monk on Jan 08, 2004 at 18:25 UTC | |
by Joost (Canon) on Jan 09, 2004 at 11:21 UTC |