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

Function dayMs

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

Source from the content-addressed store, hash-verified

86}
87
88const dayMs = (day: string): number => Date.parse(`${day}T00:00:00Z`);
89const addDays = (day: string, delta: number): string => utcDay(dayMs(day) + delta * DAY_MS);
90const daysApart = (from: string, to: string): number => Math.round((dayMs(to) - dayMs(from)) / DAY_MS);
91

Callers 2

addDaysFunction · 0.70
daysApartFunction · 0.70

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected