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

Re: extract month and year from localtime

by hdb (Monsignor)
on Feb 21, 2014 at 07:08 UTC ( [id://1075701]=note: print w/replies, xml ) Need Help??


in reply to extract month and year from localtime

If you use localtime in list context (for example by assigning it to an array or a list), you get all parts separately. For example it says in the documentation:

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time +);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-26 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found