in reply to how do i get yesterday's date using localtime()?
should work. 86400 is the number of seconds in a day. You could also do this using Date::Manip.my $now = time; for my $i (0..9) { print "$i days ago... ", scalar localtime $now - $i * 86400, "\n"; }
And you could get fancier w/ the date printout than this is--it's just an example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(dws)Re: Re: how do i get yesterday's date using localtime()?
by dws (Chancellor) on May 30, 2001 at 00:27 UTC | |
|
Re: Re: how do i get yesterday's date using localtime()?
by qball (Beadle) on May 30, 2001 at 00:13 UTC |