There's more than one way to do things | |
PerlMonks |
Re^4: Date::Manip Sunday Holidaysby SBECK (Chaplain) |
on Nov 28, 2015 at 19:20 UTC ( [id://1148774]=note: print w/replies, xml ) | Need Help?? |
In general, you probably don't want to include both the definition of New Years and New Years observed (though you can but you have to be careful of the ordering if you add both... this is talked about in the documentation on Date::Manip::Holidays). To define the true New Years, just add (to your holidays):
To define an observed New Years (where you observe it on Friday Dec 31 if Jan 1 falls on Saturday, or on Mon Jan 2 if Jan 1 falls on a Sunday), use the following:
NOTE: this is straight from the documentation on Date::Manip::Holidays which is a better source of information on defining holidays than the Date::Manip::Recur document. Other definitions are also possible, but these cover the most commonly desired definitions.
In Section
Seekers of Perl Wisdom
|
|