Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: get previous month in two digit number

by hdb (Monsignor)
on Jul 19, 2013 at 13:52 UTC ( #1045361=note: print w/replies, xml ) Need Help??


in reply to Re: get previous month in two digit number
in thread get previous month in two digit number

Just do

( $present_month - 1 || 12 )

to implement rollover from January into December.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045361]
help
Chatterbox?
[jedikaiti]: Happy Thanksgiving Eve to my fellow American Monks
[jedikaiti]: or as I like to think of it, preparatory panic day

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2017-11-22 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?