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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1227662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found