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

Specify the Nth day of the month not working #18

Open
grarek opened this issue Apr 27, 2021 · 0 comments
Open

Specify the Nth day of the month not working #18

grarek opened this issue Apr 27, 2021 · 0 comments

Comments

@grarek
Copy link

grarek commented Apr 27, 2021

I've been trying to use croncpp for scheduling, however when I try to do something monthly (ie: Only run on the 2nd friday) croncpp seems to only do weekly.

I've looked in croncpp.h and couldn't see it parsing the '#' character nor handling anything else regarding days_of_week besides ranges.

I tried adding to the test_standard.cpp:
check_next("0 30 23 ? * 5#2", "2011-04-30 23:30:00", "2011-05-13 23:30:00");

image

Also noticed that this seems to be handling 5 as thursday instead of friday.

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

1 participant