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

Function daysInMonth

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

Source from the content-addressed store, hash-verified

443}
444
445const daysInMonth = (date: Date): number =>
446 new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 0)).getUTCDate()
447
448/**
449 * 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