比如cron表达式为 * * 0/5 * * ?
的一个job
在12:05:00:000
进入job,执行时,我要获取12:05:00:000
这个时间,注意,不能是12:05:00:023
,所以当然不能使用new Date()
天蓬老师2017-04-17 17:50:58
First of all,
Cron cannot guarantee that the job will be started at 12:05:00:000.
Just align the time when your app starts up with 0/5