Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Answer: How do I find today's date?

by Zombie Melkurion (Initiate)
on Sep 03, 2001 at 15:20 UTC ( #109844=categorized answer: print w/replies, xml ) Need Help??

Q&A > dates and times > How do I find today's date? - Answer contributed by Zombie Melkurion

Here's a complete little program:
use Time::localtime; $tm = localtime; printf("The current date is %04d-%02d-%02d\n", $tm->year+1900, ($tm->mon)+1, $tm->mday); printf("The current time is %02d:%02d:%02d\n", $tm->hour, $tm->min, $t +m->sec);

Replies are listed 'Best First'.
Re: Answer: How do I find today's date?
by davorg (Chancellor) on Sep 03, 2001 at 15:33 UTC
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2016-10-24 11:18 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.