Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add is_business_day method to date #580

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

btschr
Copy link

@btschr btschr commented Nov 15, 2021

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Add functionality to Date class to determine if a date is a business day with is_business_day. There is an optional holidays parameter that allows the user to input a list of dates that swill be treated as holidays and therefore not business days.

Not included in this Pull Request (yet), but this lays the groundwork for a future addition that also include business day concept in the Period class, e.g. looping through period with a business_days_only=True flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant