ksublondie has asked for the wisdom of the Perl Monks concerning the following question:
Following the documentation, I've tried in my holiday config file 1*1:0:1:0:0:0*NWD = New Years Day, but it lists BOTH Saturday and Sunday New Year days on the following Monday. I've also tried 1*1:0:2:0:0:0*WD2 = New Years Day, but it always picks the Monday of the week of Jan 2.
Is there a way I can dynamically generate the correct observed holidays? I'm currently hard-coding these Sunday holidays every few years which is a perfect environment for screwing it up.
CLARIFICATION: Holidays are to be observed on their usual date unless it falls on a Sunday. In this case, the holiday is observed the following Monday. In addition, Saturdays are never "business" days.
EDIT: Monday Jan 2 = New Years Day (observed) is essentially what I need, but that syntax doesn't work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date::Manip Sunday Holidays
by u65 (Chaplain) on Nov 27, 2015 at 22:33 UTC | |
by ksublondie (Friar) on Nov 27, 2015 at 22:42 UTC | |
by u65 (Chaplain) on Nov 28, 2015 at 12:23 UTC | |
by SBECK (Chaplain) on Nov 28, 2015 at 19:20 UTC | |
by u65 (Chaplain) on Nov 28, 2015 at 20:42 UTC | |
| |
|
Re: Date::Manip Sunday Holidays
by ambrus (Abbot) on Nov 28, 2015 at 20:02 UTC | |
by ksublondie (Friar) on Dec 01, 2015 at 19:00 UTC |