jmrozanec/cron-utils

Support random time intervals

Opened this issue · 2 comments

On OpenBSD, you can use the ~ symbol to specify random time intervals.
You can find more information about this in the crontab(5) manual.

It would be great if the library could parse these cron expressions and translate them into an ordinal cron expressions with a given Random instance.

@a1kaigorodov thanks! This will be a great addition.

that would really be great if that could be implemented. A requirement would be that I can give some hash value to the isMatch, nextExecution and lastExecution as input so that the random is reproducible.