valavanp has asked for the wisdom of the Perl Monks concerning the following question:
#Method 1 use Date::Simple ('date', 'today'); # Offset $n days from now: $n=60; $date = today() + $n; print "$date\n"; #Method 2 use DateTime; my $dt = DateTime->now()-> add( days => 60 ); print $dt;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date manipulations by inbuilt modules.
by moritz (Cardinal) on Aug 28, 2007 at 09:56 UTC | |
by Anonymous Monk on Aug 28, 2007 at 16:05 UTC | |
by valavanp (Curate) on Aug 28, 2007 at 10:08 UTC | |
by andreas1234567 (Vicar) on Aug 28, 2007 at 11:02 UTC | |
|
Re: Date manipulations by inbuilt modules.
by SFLEX (Chaplain) on Aug 28, 2007 at 11:48 UTC | |
|
Re: Date manipulations by inbuilt modules.
by Anonymous Monk on Aug 28, 2007 at 09:58 UTC |