Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 lurking in the Monastery: (10)
As of 2015-07-07 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls