MCPcopy Create free account
hub / github.com/e2wugui/zeze / cronNextTime

Method cronNextTime

ZezeJava/ZezeJava/src/main/java/Zeze/Component/Timer.java:1054–1057  ·  view source on GitHub ↗
(@NotNull String cron, long time)

Source from the content-addressed store, hash-verified

1052 }
1053
1054 public static long cronNextTime(@NotNull String cron, long time) throws ParseException {
1055 var cronExpression = new CronExpression(cron);
1056 return cronExpression.getNextValidTimeAfter(new Date(time)).getTime();
1057 }
1058
1059 public static void initCronTimer(@NotNull BCronTimer cronTimer, @NotNull String cron, long times, long endTime,
1060 @NotNull String oneByOneKey) throws ParseException {

Callers 3

initCronTimerMethod · 0.95
nextCronTimerMethod · 0.95
loadTimerMethod · 0.95

Calls 1

getTimeMethod · 0.65

Tested by

no test coverage detected