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

Verification Error #34

Open
ygorml opened this issue Apr 9, 2023 · 1 comment
Open

Verification Error #34

ygorml opened this issue Apr 9, 2023 · 1 comment

Comments

@ygorml
Copy link

ygorml commented Apr 9, 2023

Hi!
I got an unexpected error while trying to check a date using isbizday method.

>>> from bizdays import Calendar, load_holidays
>>> cal = Calendar.load("ANBIMA")
>>> cal.isbizday("2023-04-21")
False
>>> cal.isbizday('2023-04-20')
True

However, seeing the "ANBIMA.cal" file, we clearly visualize that 21 April's is a Holiday, but the bizday lib counts it as 20 April.

~ % python --version
Python 3.8.5
~ % uname -a
Darwin 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 x86_64
@wilsonfreitas
Copy link
Owner

Hi Ygor, sorry for the late reply, I was on a trip.

I'm not sure If I got your question.
The method isbizday returns False if the given date is a non-working day and True otherwise.
Since 2023-04-21 is a holiday, so it's a non-working day.

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

No branches or pull requests

2 participants