Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

What's my password?
Create A New User
Chatterbox?
[karlgoethebier]: marioroy: If you provide an email address i'll send you the full script of TNOG...
[karlgoethebier]: marioroy: Checkout also "Linear Expressions" by the same author...
[marioroy]: thanks karlgoethebier.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (17)
As of 2017-03-24 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (298 votes). Check out past polls.