MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / differenceInUtcDaysInclusive

Function differenceInUtcDaysInclusive

app/composables/useCharts.ts:24–28  ·  view source on GitHub ↗
(startIso: string, endIso: string)

Source from the content-addressed store, hash-verified

22}
23
24function differenceInUtcDaysInclusive(startIso: string, endIso: string): number {
25 const start = parseIsoDate(startIso)
26 const end = parseIsoDate(endIso)
27 return Math.floor((end.getTime() - start.getTime()) / 86400000) + 1
28}
29
30function splitIsoRangeIntoChunksInclusive(
31 startIso: string,

Callers 1

Calls 1

parseIsoDateFunction · 0.85

Tested by

no test coverage detected