Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to get quick i nice date format?

by davis (Vicar)
on Feb 08, 2006 at 10:36 UTC ( [id://528768]=note: print w/replies, xml ) Need Help??


in reply to How to get quick i nice date format?

You can try localtime in scalar context:
my $nowthen = localtime; print $nowthen, "\n";
Update: wow, I completely missed that you're trying to display a date in ISO 8601 format. demerphq's solution is better.

davis
Kids, you tried your hardest, and you failed miserably. The lesson is: Never try.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-19 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found