Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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.

davis
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-10-25 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls