MCPcopy Create free account
hub / github.com/Effect-TS/effect / next

Function next

packages/effect/src/Cron.ts:468–470  ·  view source on GitHub ↗
(cron: Cron, startFrom?: DateTime.DateTime.Input)

Source from the content-addressed store, hash-verified

466 * @since 2.0.0
467 */
468export const next = (cron: Cron, startFrom?: DateTime.DateTime.Input): Date => {
469 return stepCron(cron, startFrom, "next")
470}
471
472/**
473 * Returns the previous run `Date` for the given `Cron` instance.

Callers 1

Cron.tsFile · 0.70

Calls 1

stepCronFunction · 0.85

Tested by

no test coverage detected