bangor has asked for the wisdom of the Perl Monks concerning the following question:
use Time::Piece; my $t = gmtime; print $t->ymd . "\n"; $t += ONE_DAY; print $t->ymd . "\n"; my $t2 = $t + ONE_DAY; print $t2->ymd . "\n"; prints... 2014-11-20 2014-11-20 2014-11-20
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to add a day using Time::Piece
by Anonymous Monk on Nov 20, 2014 at 03:13 UTC | |
by bangor (Monk) on Nov 20, 2014 at 04:21 UTC |