Is there any java class to get Date from cron expression

后端 未结 5 1494
时光说笑
时光说笑 2021-01-04 05:46

I need to find out the first occurrence of Date and time represented by given cron expression. Is there any java class, utility code which can help in getting data object fr

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-04 06:12

    You can check org.quartz.CronExpression It has a method named getNextValidTimeAfter which you can use.

提交回复
热议问题