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

Re: How to get quick i nice date format?

by davis (Vicar)
on Feb 08, 2006 at 10:36 UTC ( #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.

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

Comment on Re: How to get quick i nice date format?
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://528768]
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: (11)
As of 2014-07-23 22:56 GMT
Find Nodes?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:

    Results (154 votes), past polls