Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to distribute time using Date::Calc module?by Jaap (Curate) |
on May 04, 2005 at 09:17 UTC ( [id://453842]=note: print w/replies, xml ) | Need Help?? |
First you have to create a 3D array @holiday with the dates of the holidays set to 1, like so: Fist add the fixed dates like newyearsday, then add the Easter-depending days using Easter_Sunday($year); and calculate the easter-depending days from there as described on Date::Calc. Now loop through the days starting at startdate, incement by one and see if the date is not Saturday or Sunday and not a holiday.
In Section
Seekers of Perl Wisdom
|
|