cron-utils icon indicating copy to clipboard operation
cron-utils copied to clipboard

how to compute the number of executions between two days?

Open kasuohei opened this issue 1 year ago • 1 comments
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

kasuohei avatar Mar 14 '24 08:03 kasuohei

https://javadoc.io/static/com.cronutils/cron-utils/9.2.1/com/cronutils/model/time/ExecutionTime.html#countExecutions-java.time.ZonedDateTime-java.time.ZonedDateTime-

MasseGuillaume avatar May 01 '24 18:05 MasseGuillaume