py-business-calendar
py-business-calendar copied to clipboard
Business days and custom calendar calculations for Python
http://py-business-calendar.readthedocs.org/en/latest/ 404s
this fails: ``` start = "2019-12-31" end = "2020-01-07" Calendar(holidays=["2019-12-31"]).busdaycount(start, end) ``` but not if: ``` start = "2019-12-31" end = "2020-01-07" Calendar(workdays=[MO, WE], holidays=["2019-12-31"]).busdaycount(start, end) ``` note: 2019-12-31 is...
This happens because different approachs are used. busdycount(): Note: The adopted notation is COB to COB, so effectively date1 is not included in the calculation result. range(): Note: All business...
Updating project with pyproject.toml, tox, pytest, pre-commit, black and flake8.
Hi! Could you please check why the code below calculates with error: `import business-calendar` `cal = Calendar()` `date1=datetime.datetime(2017, 1, 20, 14, 43, 45)` `date2=datetime.datetime(2017, 1, 28, 14, 40, 45)` `print...
When we are passing holiday as weekend, business_calender will return as a weekend, but my requirement is holiday should be the priority i.e. ``` import datetime from business_calendar import Calendar...