cron-utils icon indicating copy to clipboard operation
cron-utils copied to clipboard

Test for cron expressions overlap

Open jmrozanec opened this issue 3 years ago • 6 comments

Given the following expressions:

cron1 = "0 0 10 1/1 ? "; //everyday at 10am
cron2 = "0 0 10 ? MON "; //every monday at 10am

We would ideally want to test cron1.overlap(cron2) -> true

jmrozanec avatar Apr 22 '21 19:04 jmrozanec

Hi @jmrozanec! I'd like to work on this issue. Just to check if I understood the feature correctly, the overlap method would be declared in the Cron interface and would check the overlap between two objects that implement Cron, is that correct?

diegoramosb avatar Oct 13 '21 14:10 diegoramosb

@diegoramosb that is correct! 😄 We look forward to your PR! Greetings to Bogotá!

jmrozanec avatar Oct 13 '21 15:10 jmrozanec

Hey there! I just wanted to let you know that I'm still working on this issue. I've made progress on completing it, but it's way more complicated than I initially thought and I haven't been able to work on it for the last week or so.

diegoramosb avatar Oct 31 '21 21:10 diegoramosb

@diegoramosb we appreciate the status! 😄 Just send the PR when done, and we will be glad to merge and release a new version!

jmrozanec avatar Nov 01 '21 14:11 jmrozanec

@jmrozanec has this feature been completed yet? I implemented something similar for work, I'd like to continue contributing on this if help is still needed.

jiachengzhang1 avatar Oct 07 '23 00:10 jiachengzhang1

@jiachengzhang1 please, go ahead! The contribution is welcome! 😄

jmrozanec avatar Oct 09 '23 21:10 jmrozanec