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
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.
|
|---|