MCPcopy Index your code
hub / github.com/codeaashu/claude-code / nextCronRunMs

Function nextCronRunMs

src/utils/cronTasks.ts:302–307  ·  view source on GitHub ↗
(cron: string, fromMs: number)

Source from the content-addressed store, hash-verified

300 * Returns null if invalid or no match in the next 366 days.
301 */
302export function nextCronRunMs(cron: string, fromMs: number): number | null {
303 const fields = parseCronExpression(cron)
304 if (!fields) return null
305 const next = computeNextCronRun(fields, new Date(fromMs))
306 return next ? next.getTime() : null
307}
308
309/**
310 * Cron scheduler tuning knobs. Sourced at runtime from the

Callers 4

validateInputFunction · 0.85
jitteredNextCronRunMsFunction · 0.85
findMissedTasksFunction · 0.85

Calls 2

parseCronExpressionFunction · 0.85
computeNextCronRunFunction · 0.85

Tested by

no test coverage detected