Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Calculate down time of devices in prime time (only working hours, excluding p_holidays)

by moxliukas (Curate)
on Oct 13, 2003 at 08:16 UTC ( #298790=note: print w/replies, xml ) Need Help??


in reply to Calculate down time of devices in prime time (only working hours, excluding p_holidays)

I think Date::Calc module would be of some use for you. At least it allows you to calculate time intervals, add them, etc.

  • Comment on Re: Calculate down time of devices in prime time (only working hours, excluding p_holidays)

Replies are listed 'Best First'.
Re: Re: Calculate down time of devices in prime time (only working hours, excluding p_holidays)
by wufnik (Friar) on Oct 13, 2003 at 11:47 UTC
    hola moxiliukas;

    unfortunately, Date::Calc cannot contend with business days, nor holidays. if you wanted to use Date::Calc, you'd have to implement that stuff yourself. great if you've lost your hair shirt...;-)

    ttfn
    ...wufnik

    -- in the world of the mules there are no rules --

      Sure it can. Check out: check_business_date, Standard_to_Business, Business_to_Standard, Easter_Sunday & the recipes (especially #10 solution #2).

      It's not necessarily the easiest way to do it though. ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://298790]
help
Chatterbox?
[stevieb]: daughter arrived from SF with Gandalf the bunny for his first international flight. Very wonderful Friday... like the holidays came early :)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-12-03 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.