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

Propagate step effect over predecessor fields #56

Closed
alonsodomin opened this issue Feb 26, 2017 · 0 comments
Closed

Propagate step effect over predecessor fields #56

alonsodomin opened this issue Feb 26, 2017 · 0 comments
Labels
Milestone

Comments

@alonsodomin
Copy link
Owner

As stated in #50, the step effect that constrained fields in an expression like * */10 * * * ? (the constrained field is minutes) does not compensante it's precedessor which, when applied to a date time as 2017-02-18T16:39:42.541 should result in a 2017-02-18T16:40 value.

val Right(cron) = Cron("* */10 * * * ?")
val from = LocalDateTime.parse("2017-02-18T16:39:42.541")
val next = cron.next(from).get
from.until(next, ChronoUnit.SECONDS) shouldBe 17L

Note: The expression * */10 * * * ? is not supported in 0.3.x but it should be in 0.4.x

@alonsodomin alonsodomin added this to the 0.4.0 milestone Apr 10, 2017
@alonsodomin alonsodomin changed the title Propagate step effect over predecessor * fields Propagate step effect over predecessor fields Apr 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant