Skip to content

Releases: soroco/cron

Add support for nth Day of the Week

26 Jun 06:08
Compare
Choose a tag to compare

New Feature(s)

  • The release adds a 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 2020 and the cron spec is 1 1 * 6 4#3 then the next execution date will be Mon Jun 18 01:01 2020.
    • 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.