cron-utils
cron-utils copied to clipboard
how to compute the number of executions between two days?
trafficstars
README is say, this sdk provide the function: Compute the number of executions between two days by cron Expression, how? I want to get the number of execution in yesterday by cron expression, for example: (1) 0 50 0 * * ? yesterday should be execute one time
(2) 0 26,29,33 * * * ? yesterday should be execute three times
(3) 0 0 23 L * ? yesterday should be execute zero time
plus: just for example, need to consider different case
https://javadoc.io/static/com.cronutils/cron-utils/9.2.1/com/cronutils/model/time/ExecutionTime.html#countExecutions-java.time.ZonedDateTime-java.time.ZonedDateTime-