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

Re: Date format YYYY-MM-DD HH-MM-SS

by Lennotoecom (Pilgrim)
on Oct 13, 2013 at 17:18 UTC ( [id://1058087]=note: print w/replies, xml ) Need Help??


in reply to Date format YYYY-MM-DD HH-MM-SS

one of the ways to go
if you wish get your data into
the separate variables
@date = (localtime(time))[5, 4, 3, 2, 1, 0]; $date[0]+=1900; $date[1]++; printf "%4d-%02d-%02d %02d:%02d:%02d\n", @date;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found