Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to How to distribute time using Date::Calc module?

First you have to create a 3D array @holiday with the dates of the holidays set to 1, like so:
### New years day $holiday[2005][1][1] = 1;
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://453842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found