cron
cron copied to clipboard
PR for Nth day of the Week on Mth Occurrence
This PR adds the feature of executing a job on nth Day of the Week. Now, the DoW spec can be of the form, N#M where N is the Day of the Week, Sunday(0) to Saturday(6), and M is the occurrence number, 1 to 4 or L for Last week.
For example,
- if the current day is
Mon Jun 1 01:00 2020and the cron spec is1 1 * 6 4#3then the next execution date will beMon Jun 18 01:01 2020. - if the current day is
Mon Jun 1 01:00 2020and the cron spec is1 1 * 6 4#Lthen the next execution date will beMon Jun 25 01:01 2020.
Hi @robfig,
I've not updated the doc and README. I'll do it once the Code Review is complete.