in reply to localtime()
For the previous day's, use localtime(time - 86400) as merlyn points out. If the daylight savings time thing will be a problem, have a look at Date::Calc or even Time::Local (in the core distribution).use POSIX 'strftime'; my $now_string = strftime( "%Y%m%d", localtime );
blokhead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: localtime()
by LeeC79 (Acolyte) on Jul 19, 2004 at 12:59 UTC |