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

Re^2: How to get the current Date and Time using Perl on windows?

by johngg (Canon)
on Jan 02, 2008 at 11:29 UTC ( [id://659957]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "Time:\t".sprintf("%02d",$hour).":".sprintf("%02d",$min).":".spr
    +intf("%02d",$sec)."\n";
    
  2. or download this
    printf qq{Time:\t%02d:%02d:%02d\n}, $hour, $min, $sec;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2024-04-24 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found