MCPcopy Index your code
hub / github.com/Effect-TS/effect / daysInMonth

Function daysInMonth

packages/effect/src/Cron.ts:424–425  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

422}
423
424const daysInMonth = (date: Date): number =>
425 new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 0)).getUTCDate()
426
427/**
428 * Returns the next run `Date` for the given `Cron` instance.

Callers 2

stepCronFunction · 0.85
clampBoundaryDayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected