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 for 7 Segment Parsing? #174

Open
dbhc opened this issue Nov 13, 2019 · 9 comments
Open

Support for 7 Segment Parsing? #174

dbhc opened this issue Nov 13, 2019 · 9 comments

Comments

@dbhc
Copy link

dbhc commented Nov 13, 2019

Currently, adding the optional year segment to the cron expression breaks parsing.
Will support for this be added in the future? (ie 0 0 14 ? * MON *)

@harrisiirak
Copy link
Owner

@dbhc what is your example use case? Year support isn't really part of default cron implementation, just mentioning.

@dbhc
Copy link
Author

dbhc commented Nov 15, 2019

I have an engine that schedules jobs. (supports annual cron expressions)
I'm currently using this library as a way to parse cron expressions to display the next expected run time on the front end.
I currently have to sanitize the cron expression before parsing with cron-parser.

If the answer is no, there's no plans for annual parsing, that's alright too.
I was just asking to plan accordingly.
Thanks!

@beerran
Copy link

beerran commented Oct 29, 2020

Any updates on this? We need this aswell.
Using 7 segments is the default implementation of Quartz, which is a widely used tool for all types of scheduling.

@harrisiirak
Copy link
Owner

@beerran no updates at this point.

Using 7 segments is the default implementation of Quartz, which is a widely used tool for all types of scheduling.

Yes, however cron-parser isn't currently fully compatible with Quartz implementation. Still, this feature as such is still worth to consider (and prioritize!) and it stays open as feature reguest, but I don't have any ETA for that - any PR for that functionality is welcome.

@harrisiirak harrisiirak added the priority-high High priority feature/enhancement label Jan 1, 2021
@lichangwei
Copy link

A fork that supports year segment: https://www.npmjs.com/package/@chuxingpay/cron-parser

@759325100
Copy link

@harrisiirak any update?

@harrisiirak
Copy link
Owner

@759325100 sorry, no updates :(

@emahuni
Copy link

emahuni commented Apr 6, 2022

Please this is a very useful use-case as this actually pins down a cron to run on a specific date.

@Ralireza
Copy link

up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants