go ahead... be a heretic | |
PerlMonks |
Re^3: Getting previous dates from the current dateby Kanji (Parson) |
on Mar 29, 2005 at 18:18 UTC ( [id://443216]=note: print w/replies, xml ) | Need Help?? |
Rather than time(), I'd suggest using...
This'll make midday your starting point for calculations, which helps sidestep the whole daylight savings issue Smylers pointed out. As an added bonus, Time::Local is also part of the core distribution, so you don't need to install anything via CPAN (which is good, as some of those other more fancy Date:: modules are mighty bloaty!). --k.
In Section
Seekers of Perl Wisdom
|
|