Problems? Is your data what you think it is? | |
PerlMonks |
Re: Date::Manip how to set FirstDay to Sundayby kschwab (Vicar) |
on Dec 24, 2018 at 13:51 UTC ( [id://1227662]=note: print w/replies, xml ) | Need Help?? |
Edit: Dupe...guess I should check for replies between mashing the preview button. "My business days are Sunday to Thursday" Funny, that example is specifically mentioned in the Date::Manip::Config docs: WorkWeekBeg must come before WorkWeekEnd numerically so there is no way to handle a work week of Sunday to Thursday using these variables...However...can be handled using a fairly simple workaround. To handle a work week of Sunday to Thursday, just set WorkWeekBeg=1 and WorkWeekEnd=7 and defined a holiday that occurs every Friday and Saturday. It suggests using Date::Manip::Recur for the Friday/Saturday holidays.
In Section
Seekers of Perl Wisdom
|
|