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

croniter match method will match the 29th to any March 1 #141

Closed
guchey opened this issue Jun 15, 2020 · 1 comment
Closed

croniter match method will match the 29th to any March 1 #141

guchey opened this issue Jun 15, 2020 · 1 comment

Comments

@guchey
Copy link

guchey commented Jun 15, 2020

Hello.

I am using match to test if testdate is any 29th.
But if testdate is March 1, it is considered True.

>>> _2020 = datetime(2020, 3, 1, 0, 0, 0)
>>> _2021 = datetime(2021, 3, 1, 0, 0, 0)
>>> _2022 = datetime(2022, 3, 1, 0, 0, 0)
>>> croniter.match("0 0 29 * *", _2020)
True
>>> croniter.match("0 0 29 * *", _2021)
True
>>> croniter.match("0 0 29 * *", _2022)
True

Do you have any ideas on how to get around this?

@kiorky
Copy link
Collaborator

kiorky commented Nov 25, 2021

dup kiorky/croniter#1

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