MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / pad

Function pad

apps/vis/web/src/util/time.ts:23–23  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

21 if (!epochMs || !Number.isFinite(epochMs)) return '—';
22 const d = new Date(epochMs);
23 const pad = (n: number) => String(n).padStart(2, '0');
24 return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;
25}
26

Callers 2

formatAbsoluteTimeFunction · 0.70
formatWallClockFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected