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

Inconsistencies in bizdays function #54

Closed
wilsonfreitas opened this issue Mar 30, 2017 · 1 comment
Closed

Inconsistencies in bizdays function #54

wilsonfreitas opened this issue Mar 30, 2017 · 1 comment
Labels

Comments

@wilsonfreitas
Copy link
Owner

wilsonfreitas commented Mar 30, 2017

Using the following calendar

create.calendar(name = "example1", weekdays = c("saturday", "sunday"),
    start.date = "2017-01-24", end.date = "2017-01-30", holidays = "2017-01-25")

we get

bizdays("2017-01-24", "2017-01-25", "example1")

returns 0, and

bizdays("2017-01-25", "2017-01-26", "example1")

returns 1.

We get different results depending on if the period starts or finishes at a nonworking day.

wilsonfreitas added a commit that referenced this issue Apr 8, 2017
It works. Removing inconsistencies.
Issue #54
@wilsonfreitas
Copy link
Owner Author

Done

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

No branches or pull requests

1 participant