albertc has asked for the wisdom of the Perl Monks concerning the following question:
I have up & down datetime data for devices, I need a function that will provide the downtime within the primetime period. Input will be d_time, u_time, stime (starting time for Primetime, 08:00:00), etime (endtime for PrimeTime, 18:59:59).
The function also needs to remove downtime that occured on a public holiday and over weekends! Public holidays will be read from mysql table with Datetime record of each public holiday.
Hope you can help!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Calculate down time of devices in prime time (only working hours, excluding p_holidays)
by tachyon (Chancellor) on Oct 13, 2003 at 08:22 UTC | |
Re: Calculate down time of devices in prime time (only working hours, excluding p_holidays)
by phydeauxarff (Priest) on Oct 13, 2003 at 12:27 UTC | |
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 | |
by wufnik (Friar) on Oct 13, 2003 at 11:47 UTC | |
by Mr. Muskrat (Canon) on Oct 14, 2003 at 01:53 UTC | |
Re: Calculate down time of devices in prime time (only working hours, excluding p_holidays)
by hossman (Prior) on Oct 13, 2003 at 18:01 UTC |
Back to
Seekers of Perl Wisdom