good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Managing a on-call Scheduleby bsdz (Friar) |
on Feb 26, 2007 at 16:30 UTC ( [id://602160]=note: print w/replies, xml ) | Need Help?? |
There are various interval type modules on CPAN. By converting all your dates to epoch seconds and using Number::Interval, one could check to see whether the ranges overlap.
To prepare a schedule you could use an iCal compliant application then convert the output to intervals. This could be done with Net::ICal as suggested above or Tie::iCal with Date::ICal.
In Section
Seekers of Perl Wisdom
|
|