Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Calculate seconds between dates

by Your Mother (Archbishop)
on Nov 23, 2017 at 22:14 UTC ( [id://1204169]=note: print w/replies, xml ) Need Help??


in reply to Calculate seconds between dates

There are probably four main options from Date::Calc, Time::Piece, DateTime, and Date::Manip. Here's one of them off the top of my head for tomorrow (Friday) to next Wednesday at the times you suggested‐ Update: not working time here, so definitely not what you want though Mktime is a to_epoch routine.

perl -MDate::Calc=Mktime -E 'say abs Mktime(2017,11,24,16,33,0) - Mkti +me(2017,11,29,17,10,0)' 434220

Replies are listed 'Best First'.
Re^2: Calculate seconds between dates
by ikegami (Patriarch) on Nov 23, 2017 at 22:33 UTC

    They want the number of working seconds.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-23 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found