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

Function prev

packages/effect/test/Cron.test.ts:11–12  ·  view source on GitHub ↗
(input: Cron.Cron | string, after?: DateTime.DateTime.Input)

Source from the content-addressed store, hash-verified

9 Cron.next(Cron.isCron(input) ? input : Cron.unsafeParse(input), after)
10
11const prev = (input: Cron.Cron | string, after?: DateTime.DateTime.Input) =>
12 Cron.prev(Cron.isCron(input) ? input : Cron.unsafeParse(input), after)
13
14const allDays = Array.from({ length: 31 }, (_, i) => i + 1)
15const allWeekdays = Array.from({ length: 7 }, (_, i) => i)

Callers 1

Cron.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected