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

Re^2: Extract System Time & Date in a perl so that it can be used in a perl program

by Random_Walk (Parson)
on Jan 31, 2006 at 17:19 UTC ( #526807=note: print w/ replies, xml ) Need Help??


in reply to Re: Extract System Time & Date in a perl so that it can be used in a perl program
in thread Extract System Time & Date in a perl so that it can be used in a perl program

davorg++ POSIX++ strftime++

I always use strftime and print out using ISO 8601 time format, here is a swift example

> perl -MPOSIX -le'print strftime("%Y-%m-%d %X", localtime)' 2006-01-31 18:13:37

If you print your times in this format it makes them easy to compare or sort with gt/lt

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!


Comment on Re^2: Extract System Time & Date in a perl so that it can be used in a perl program
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2014-08-28 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls