in reply to Re: Getting previous dates from the current date
in thread Getting previous dates from the current date
Then just strftime to whatever format you need.my $NUM_DAYS = 7; my $time = time(); print scalar localtime ($time - (60*60*24*$NUM_DAYS));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting previous dates from the current date
by Smylers (Pilgrim) on Mar 29, 2005 at 17:23 UTC | |
|
Re^3: Getting previous dates from the current date
by Kanji (Parson) on Mar 29, 2005 at 18:18 UTC |