-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problem with range matching. #11
Comments
Hello! That's expected behavior of cron, but croner has an option for using OR instead of AND - https://github.com/Hexagon/croner-rust?tab=readme-ov-file#3-with_dom_and_dow . Does that work for you? |
Background (from developing the javascript version of croner): Hexagon/croner#53 |
Interesting, it worked, thank you! |
Closing this issue as my problem is resolved. But, a thought: shouldn't |
Great! OR is the default in most cron implementations, including the POSIX crontab specification
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/crontab.html |
Hi!
First of all, thank you for this useful crate. I would like to report an issue:
The cron expression
0 0 15-21 3 5
should match a Friday in March that's between the days 15-21.In other words it should match
15-21
AND5
, i.e. "3-15".Instead it seems to match
15-21
OR5
, i.e. "3-1" "3-8" "3-15" "3-16" "3-17" "3-18" "3-19" "3-20" "3-21" "3-22" "3-29".The text was updated successfully, but these errors were encountered: