Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Date::Manip how to set FirstDay to Sunday

by kschwab (Vicar)
on Dec 24, 2018 at 13:51 UTC ( #1227662=note: print w/replies, xml ) Need Help??


in reply to Date::Manip how to set FirstDay to Sunday

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.

  • Comment on Re: Date::Manip how to set FirstDay to Sunday

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2019-07-20 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?