-
-
Notifications
You must be signed in to change notification settings - Fork 169
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 for '@' expressions #318
Conversation
Nice! Would you be up for adding something to README mentioning this? Maybe an item on the Features list and a usage example? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure no problem :)
@HB9HIL Looks like there are some test failures. |
upps. I forgot to catch the empty case. I also added the necessary tests. Sorry :) |
'@monthly': '0 0 1 * *', | ||
'@weekly': '0 0 * * 0', | ||
'@daily': '0 0 * * *', | ||
'@midnight': '0 0 * * *', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@midnight
- I'm not aware of a cron implementation that supports this. Is there one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep see here: https://www.unix.com/man-page/linux/5/crontab/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The changes in PR were just released in v2.50.0 🎉. |
Thanks to you :) |
Added support for '@' expressions.
@Yearly =
0 0 1 1 *
@annually =
0 0 1 1 *
@monthly =
0 0 1 * *
@Weekly =
0 0 * * 0
@daily =
0 0 * * *
@midnight =
0 0 * * *
@hourly =
0 * * * *
The @ expressions gots translated in a basic cron and given to the origin parse function. Let me know what you think.