I have an initial date and a cron expression. How could I find the next date satisfying this cron expression ?.
String cronExpresion = "* * * * * *"
LocalDateTime initial = LocalDateTime.now()
LocalDateTime next = ?
I tried CronSequenceGenerator and its next() method but it uses java.util.Date and I would prefer not to convert LocalDateTime to Date and vice versa. Plus, I've got different result (time between the 2 dates) from several run with a cron like 'every 10 secondes' ...
Any idea ? lib ?