in reply to get previous month in two digit number
Or roll-out your own if you want, using localtime like so:
A
A: UPDATE:my $present_month = ( localtime() )[4] + 1; print sprintf "current month: %d\nprevious month: %d\n", $present_mont +h, $present_month - 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: get previous month in two digit number
by Loops (Curate) on Jul 19, 2013 at 04:24 UTC | |
|
Re^2: get previous month in two digit number
by flexvault (Monsignor) on Jul 20, 2013 at 07:34 UTC | |
|
Re^2: get previous month in two digit number
by hdb (Monsignor) on Jul 19, 2013 at 13:52 UTC |