Home » Java » compare Cron Expression with current time

compare Cron Expression with current time

Posted by: admin July 18, 2018 Leave a comment

Questions:

I am designing a scheduler and using quartz library. I want to check whether cron expression time refer to the time in the future, Otherwise trigger won’t be executed at all. Is there any way of comparing cron expression time with current time in java.

Answers: