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

Function utcDay

telemetry-worker/src/rollup.ts:40–42  ·  view source on GitHub ↗
(atMs: number)

Source from the content-addressed store, hash-verified

38
39/** UTC YYYY-MM-DD — the key every event, rollup and chart is bucketed on. */
40export function utcDay(atMs: number): string {
41 return new Date(atMs).toISOString().slice(0, 10);
42}
43
44/** Rejects both the wrong shape and impossible dates (`2026-02-31` round-trips as `2026-03-03`). */
45export function isValidDay(day: string): boolean {

Callers 4

isValidDayFunction · 0.70
retentionCutoffFunction · 0.70
runNightlyFunction · 0.70
handleAdminRollupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected