Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: localtime - make the date format different?

by pKai (Priest)
on Dec 22, 2008 at 10:14 UTC ( #732025=note: print w/replies, xml ) Need Help??


in reply to localtime - make the date format different?

For this I regularly have a sub which formats the date and time like this:

Z:\>perl -e "@t=localtime(); printf('%s-%02d-%02d %02d:%02d:%02d', $t[ +5]+1900, $t[4]+1, @t[3,2,1,0])" 2008-12-22 11:13:35

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://732025]
help
Chatterbox?
[Corion]: Meh. Some Open Source people get bought out by advertising firms to change their projects to include advertising. But nobody has approached me to buy out WWW::Mechanize ::$browser from me, to make the browsers launch an ad page ...
[Corion]: ... instead of about:blank, which the modules currently do at startup.
[Corion]: Maybe I'm too pricey. But I haven't received any offers at all ;-)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-07-24 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (354 votes). Check out past polls.