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

Extend support for offset notation as in "*/10+2" #50

Open
amakarishev opened this issue Sep 12, 2017 · 0 comments
Open

Extend support for offset notation as in "*/10+2" #50

amakarishev opened this issue Sep 12, 2017 · 0 comments

Comments

@amakarishev
Copy link

We've been using cron-parser in our product for more than three years. We recently extended our cron expressions with "standard" way of using offset as it is supported by more than one schedulers. Here is how drupal describes it:

https://www.drupal.org/node/1666964
The plus ('+') operator (called "offset") can be used as an offset to a given range. For example, "*/10+2" in the minute field is equivalent to "2,12,22,32,42,52".

As of now, cron parser considers above expression invalid and fails to parse it. Can you please consider extending the parser and support +M notation when it is coupled with */N expression as above?

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