Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!use warnings; use strict; use Time::Piece; my $t = Time::Piece->new(); my $lastmonth = $t->add_months(-1); print $lastmonth->strftime('%B'), "\n"; # Doesnt work #my $l_month_number = $lastmonth->strftime('%02d');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Last month's number with Time::Piece
by Perlbotics (Archbishop) on Dec 04, 2014 at 18:40 UTC | |
by Anonymous Monk on Dec 04, 2014 at 18:51 UTC | |
by Anonymous Monk on Dec 04, 2014 at 19:04 UTC | |
by Anonymous Monk on Dec 05, 2014 at 14:20 UTC |