Releases: soroco/cron
Releases · soroco/cron
Add support for nth Day of the Week
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
orL
for Last week.
For example,- if the current day is
Mon Jun 1 01:00 2020
and the cron spec is1 1 * 6 4#3
then the next execution date will beMon Jun 18 01:01 2020
. - if the current day is
Mon Jun 1 01:00 2020
and the cron spec is1 1 * 6 4#L
then the next execution date will beMon Jun 25 01:01 2020
.
- if the current day is