MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / dayMs

Function dayMs

telemetry-dashboard/src/api.ts:76–76  ·  view source on GitHub ↗
(day: string)

Source from the content-addressed store, hash-verified

74}
75
76const dayMs = (day: string): number => Date.parse(`${day}T00:00:00Z`);
77const addDays = (day: string, delta: number): string => utcDay(dayMs(day) + delta * DAY_MS);
78const daysApart = (from: string, to: string): number => Math.round((dayMs(to) - dayMs(from)) / DAY_MS);
79

Callers 2

addDaysFunction · 0.70
daysApartFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected