Skip to content

Specify the Nth day of the month not working #18

@grarek

Description

@grarek

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions