Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: get previous month in two digit number

by hdb (Prior)
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045361]
[stevieb]: in a C++ header file, if a function declaration is listed twice with each listing containing different params, that's just essentially allowing one function accept two different arg lists, yes?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2017-06-28 23:49 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (653 votes). Check out past polls.