There's the Date::Calc CPAN module:
use warnings; use strict; use Date::Calc::Object; my $date = Date::Calc->today - 1;
Which will get you yesterday's date in a pretty clean way.
In reply to Re: potential date and time issues / code cleanup
by nefigah
in thread potential date and time issues / code cleanup
by Conal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |