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

Function prev

packages/effect/src/Cron.ts:815–817  ·  view source on GitHub ↗
(cron: Cron, now?: DateTime.DateTime.Input)

Source from the content-addressed store, hash-verified

813 * @since 3.20.0
814 */
815export const prev = (cron: Cron, now?: DateTime.DateTime.Input): Date => {
816 return stepCron(cron, now, "prev")
817}
818
819const stepCron = (cron: Cron, now: DateTime.DateTime.Input | undefined, direction: "next" | "prev"): Date => {
820 const tz = Option.getOrUndefined(cron.tz)

Callers 2

filterFunction · 0.50

Calls 1

stepCronFunction · 0.85

Tested by

no test coverage detected