Skip to content

Interval doest work as expected in cron #4

@samer1977

Description

@samer1977

Hi,

First of all, Kudos to you for coming with such solution. Excellent Job.

Second, not sure if this is still being maintained because its very useful.

Third. The issue Im facing is that when I have an interval starting from an hour that is not divisive by the interval , the validation doesnt work as expected. For example: If I set the cron time to be "0 10 7-17/2 * * *" then I expect the following to be valid:

2024-06-20 7:10:00
2024-06-20 9:10:00
2024-06-20 11:10:00
2024-06-20 13:10:00
...
2024-06-20 17:10:00

However its not, and it only work if I use even hours which is not what I expected. If I do the same expression on this site: https://www.freeformatter.com/cron-expression-generator-quartz.html , I get the expected dates:

image

I know this is not perfect cron but it would be nice if its still work as expected.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurefeature - enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions