croncpp icon indicating copy to clipboard operation
croncpp copied to clipboard

Specify the Nth day of the month not working

Open grarek opened this issue 4 years ago • 0 comments

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.

grarek avatar Apr 27 '21 21:04 grarek