Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

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


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

Hi Lena2018!

Your workdays seem to be special :-)

In Date::Manip::Config it says under BUSINESS CONFIGURATION VARIABLES:
… WorkWeekBeg must come before WorkWeekEnd numerically so there is no way to handle a work week of Sunday to Thursday using these variables.

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.
… can be done using recurrences. Refer to the Date::Manip::Recur documentation for details.
  • 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://1227661]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2019-10-18 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?