Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: TIME::LOCAL from within KSH

by AltBlue (Chaplain)
on May 19, 2007 at 11:52 UTC ( [id://616315]=note: print w/replies, xml ) Need Help??


in reply to Re^2: TIME::LOCAL from within KSH
in thread TIME::LOCAL from within KSH

What version of "date(1)" are you talking about?

Sorry, OP didn't mention anything about his/her env.

"-d STRING" doesn't seem to report seconds since epoch, but date +%s does

"-d STRING" will be used for passing custom time, otherwise you'll be formatting the current time ;-)

e.g.:

$ date -d '1987-12-18 12:13:14' -u '+%s' 566827994 $ date -d '1987-12-18' -u '+%s' 566784000

--
altblue.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-06-17 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.