Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How do I find today's date?

by Melkurion (Initiate)
on Sep 03, 2001 at 15:20 UTC ( [id://109844]=note: print w/replies, xml ) Need Help??


in reply to How do I find today's date?

Here's a complete little program:
use Time::localtime; my $tm = localtime; printf "The current date is %04d-%02d-%02d\n", $tm->year+1900, ($tm->m +on)+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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://109844]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found