cron icon indicating copy to clipboard operation
cron copied to clipboard

PR for Nth day of the Week on Mth Occurrence

Open pallavJha opened this issue 5 years ago • 1 comments

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,

  1. if the current day is Mon Jun 1 01:00 2020 and the cron spec is 1 1 * 6 4#3 then the next execution date will be Mon Jun 18 01:01 2020.
  2. if the current day is Mon Jun 1 01:00 2020 and the cron spec is 1 1 * 6 4#L then the next execution date will be Mon Jun 25 01:01 2020.

pallavJha avatar Jun 16 '20 13:06 pallavJha

Hi @robfig,

I've not updated the doc and README. I'll do it once the Code Review is complete.

pallavJha avatar Jun 18 '20 08:06 pallavJha