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

cron4s.ParseFailed: blank expected at position 4 but found '/' #490

Open
Raistnik opened this issue Jun 2, 2023 · 2 comments
Open

cron4s.ParseFailed: blank expected at position 4 but found '/' #490

Raistnik opened this issue Jun 2, 2023 · 2 comments

Comments

@Raistnik
Copy link

Raistnik commented Jun 2, 2023

import cron4s._
val cron = "0 15/5 14 * * ?"
val expr = Cron(cron)
println(expr.toString())

why I can't set every 15/5? Not even 1/5 or 5/5 seems to work. Is it not supported in spec?
Version 0.6.1

@i10416
Copy link
Contributor

i10416 commented Jun 3, 2023

It does not seem a standard cron expression though some dialects support it
see https://crontab.guru/#0_15/5_14___?

Hmm, / won't working... for cron4s (AFAIK) in 0.5.0 and 0.6.1🤔

@i10416
Copy link
Contributor

i10416 commented Aug 19, 2023

Ah, I think you need to explicitly specify range(e.g. 0 15-23/5 14 * * ?).

https://crontab.guru/#0_15-23/5_14__

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