ferum has asked for the wisdom of the Perl Monks concerning the following question:
this code is to get yesterday's date using localtime() function.. but i want to get tomorrow's date if today's date was defined as 05.23.2003...use Date::Calc qw(Add_Delta_Days); my (undef, undef, undef, $day, $month,$year) = localtime(); $year+=1900; $month+=1; ($year,$month,$day) = Add_Delta_Days($year,$month,$day, -1); $yesterday = $month.".".$day.".".$year;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tomorrow's date with Date::Calc
by rob_au (Abbot) on Mar 07, 2003 at 09:37 UTC | |
|
Re: Tomorrow's date with Date::Calc
by tall_man (Parson) on Mar 07, 2003 at 04:31 UTC | |
|
Re: Tomorrow's date with Date::Calc
by ferum (Initiate) on Mar 07, 2003 at 04:36 UTC |