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

Every x days could be misleading #332

Open
1 task done
xanderwebs opened this issue Jan 17, 2025 · 0 comments
Open
1 task done

Every x days could be misleading #332

xanderwebs opened this issue Jan 17, 2025 · 0 comments

Comments

@xanderwebs
Copy link

Cron Expression
0 0 14 */30 * *

Expected Output
"At 02:00 PM, every 30 days in a month"

Actual Output
"At 02:00 PM, every 30 days"

Prerequisites

  • The cron expression being passed in is a valid expression. cRonstrue does not validate expressions and assumes the one you pass is already valid. See the FAQ for more details.

The current output is not technically correct because it implies that it triggers every 30 days, where as it's scheduled every 30 days within a given month. For instance, for this expression, the following dates would be scheduled:

Wed Jan 01 2025
Fri Jan 31 2025
Sat Feb 01 2025
Sat Mar 01 2025
Mon Mar 31 2025
Tue Apr 01 2025
Thu May 01 2025
Sat May 31 2025
Sun Jun 01 2025
Tue Jul 01 2025
Thu Jul 31 2025
Fri Aug 01 2025
Sun Aug 31 2025
...

(which is not every 30 days).

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

1 participant