Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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 cooling their heels in the Monastery: (5)
As of 2015-11-25 05:39 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (671 votes), past polls