Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Month Dates

by Thelonius (Priest)
on Mar 02, 2007 at 13:26 UTC ( #602873=note: print w/ replies, xml ) Need Help??


in reply to Month Dates

use Time::localtime; my $tm = localtime; my $this_month = sprintf("%04d%02d?", $tm->year+1900, ($tm->mon)+1); my $last_month = ($tm->mon == 0) ? sprintf("%04d12?", $tm->year+1899) : sprintf("%04d%02d?", $tm->year+1900, $tm->mon);


Comment on Re: Month Dates
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://602873]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (21)
As of 2015-07-02 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (39 votes), past polls