MCPcopy
hub / github.com/npmx-dev/npmx.dev / daysInYear

Function daysInYear

app/utils/date.ts:22–24  ·  view source on GitHub ↗
(year: number)

Source from the content-addressed store, hash-verified

20}
21
22export function daysInYear(year: number): number {
23 return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0) ? 366 : 365
24}

Callers 2

date.spec.tsFile · 0.90
buildYearlyEvolutionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected