Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baybatu/8fe5713c44250f9cdc9185d333fd7ba0 to your computer and use it in GitHub Desktop.
Save baybatu/8fe5713c44250f9cdc9185d333fd7ba0 to your computer and use it in GitHub Desktop.
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