Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR for Nth day of the Week on Mth Occurrence #321

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pallavJha
Copy link

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 pallavJha changed the title PR for Nth day of the Week PR for Nth day of the Week on Mth Occurrence Jun 17, 2020
@pallavJha
Copy link
Author

Hi @robfig,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant