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

Function startOfUtcMonth

app/composables/useCharts.ts:16–18  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

14}
15
16function startOfUtcMonth(date: Date): Date {
17 return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1))
18}
19
20function startOfUtcYear(date: Date): Date {
21 return new Date(Date.UTC(date.getUTCFullYear(), 0, 1))

Callers 1

resolveDateRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected