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

Cron reference used ? #37

Open
jbruggem opened this issue Jun 13, 2018 · 2 comments
Open

Cron reference used ? #37

jbruggem opened this issue Jun 13, 2018 · 2 comments

Comments

@jbruggem
Copy link

Hi,

I see the spec for DaysOfWeek defines the rangs as 1 -> 7. I'm using this project to parse cronfiles on a debian/ubuntu, which uses the range 0 -> 6. I guess this means this project is not based on the same specification ?

  • Maybe it would be interesting to reference what cron specification this project complies with ?
  • Is it imaginable to also support debian/ubuntu's spec ?
@zslayton
Copy link
Owner

Apologies for the delayed reply. It's been a while, but I seem to recall following the Quartz service's lead on this. For interested parties, the relevant cron code is here.

Maybe it would be interesting to reference what cron specification this project complies with ?

Yes, definitely.

Is it imaginable to also support debian/ubuntu's spec ?

I would love that! This project is on the backburner for me, though, so I'm not likely to implement that functionality soon. If you're interested in adding it yourself, I'd welcome a PR. The first step would be to make a straw man version of the API to show how developers would specify the cron expression spec they're trying to follow. This might be a large-ish task since ideally we'd allow folks to specify an implementation like Unix, Vixie, or Quartz, rather than just how DaysOfWeek is indexed in particular. That might bring a lot of complexity with it, but I'm not sure without reading up on each of them.

@Hexagon
Copy link

Hexagon commented Dec 2, 2023

For anyone interested, I've documented the specifics of croner, cron and saffron at https://github.com/Hexagon/croner-rust#why-croner-instead-of-cron-or-saffron

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

3 participants