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

Support scheduling for daylight savings #1

Merged
merged 1 commit into from
May 7, 2020
Merged

Support scheduling for daylight savings #1

merged 1 commit into from
May 7, 2020

Conversation

notnoop
Copy link

@notnoop notnoop commented May 7, 2020

This adds support for daylight savings into the library, in the
following form:

  • If the cronexpr isn't satisfied on a day due to leap forward, the day
    will be skipped.

    • 30 2 * * * will not match anytime on 2019-03-10 US/New_York
  • If an hour is "repeated" due to daylight savings backward transition,
    the day may have multiple matches

    • 30 1 * * * will match twice on 2019-11-03 US/New_York

Every second cron expressions will match every second during transition.
So will hourly expressions.

This adds support for daylight savings into the library, in the
following form:

* If the cronexpr isn't satisfied on a day due to leap forward, the day
will be skipped.
  * "30 2 * * *" will not match anytime on 2019-03-10 US/New_York

* If an hour is "repeated" due to daylight savings backward transition,
the day may have multiple matches
  * "30 1 * * *" will match twice on 2019-11-03 US/New_York

Every second cron expressions will match every second during transition.
So will hourly expressions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant