http://www.perlmonks.org?node_id=299002


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

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