Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get next execution date for Spring cron expressions

I usually use Groovy Console to run code below to get next execution date for Spring cron expressions.

new org.springframework.scheduling.support.CronSequenceGenerator("0 0/5 * * * *").next(new Date())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment