You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whether I start on a weekend date or I use the holidays feature, if my starting date is a non workday, and I add business_days to it, it will skip to the next day before doing the calculaiton.
Example1 holiday: dt = Date.civil(2019,11,11) Which is veterans day (specified in holdays)
1.business_day.after(dt) will yield Wednesday 11/13/2019 instead of Tuesday
Whether I start on a weekend date or I use the holidays feature, if my starting date is a non workday, and I add business_days to it, it will skip to the next day before doing the calculaiton.
Example1 holiday: dt = Date.civil(2019,11,11) Which is veterans day (specified in holdays)
1.business_day.after(dt) will yield Wednesday 11/13/2019 instead of Tuesday
Example2 weekend: dt = Date.civil(2019,11,17))
1.business_days.after(dt) => Tue, 19 Nov 2019
Is this by design? How do I work around this? Do I need to check the start date for .workday? after the calculation and subtract 1?
The text was updated successfully, but these errors were encountered: