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

Year expression #4

Open
hithaaaa opened this issue Aug 10, 2024 · 1 comment
Open

Year expression #4

hithaaaa opened this issue Aug 10, 2024 · 1 comment

Comments

@hithaaaa
Copy link

  • I'm submitting a ...
    [ ] bug report
    [ x ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    This library doesn't have an expression for a given year/frequency of years. If I wanted a cron expression to also include a specific year to run or frequency to run, this is not generated or accounted for. This is important for when a cron expression validator expects 6 fields.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

  • Modify data structure to include year enum and write functions similar to everyHour() or atHour().

@Victor1890
Copy link

Hi @hithaaaa, I think the best way to generate one year expression is to make combination to expression, for example: every year is "0 0 1 1 *".
Using expressions like this, you can make when you need it

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

No branches or pull requests

2 participants