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 the Year field #32

Open
stissot opened this issue Jul 27, 2021 · 2 comments
Open

Support the Year field #32

stissot opened this issue Jul 27, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@stissot
Copy link

stissot commented Jul 27, 2021

The quartz format support an optional year field in the 6th position: example:

0 0 0 1 1 ? */3

Would run on:

  1. 2024-01-01 @ 00:00:00
  2. 2027-01-01 @ 00:00:00
  3. 2030-01-01 @ 00:00:00

To allow ngx-cron-jobs to generate such a syntax, an additional periodicity input could be display when the "Year(s)" frequency is selected.

In addition, "starting year" field could be displayed to allow to generate such a syntax:

0 0 0 1 1 ? 2022/3

I have added a simulation below

image

@madsthom
Copy link
Collaborator

Hi @stissot. Sorry for the late reply. Thanks for your issue!

Is it something you already have code for, then please submit a pull request.

If not, I will give it a try to see if it is something that is easily doable.

@madsthom madsthom self-assigned this Aug 16, 2021
@madsthom madsthom added enhancement New feature or request good first issue Good for newcomers labels Aug 16, 2021
@stissot
Copy link
Author

stissot commented Sep 14, 2021

Hi @madsthom so far I don't have a working code neither found a solution, but if you can provide an implementation for this year field I will be happy to test it. This should only be supported when the quartz format is used, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants