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

Function parseTs

apps/vis/server/src/lib/session-store.ts:363–367  ·  view source on GitHub ↗
(input: string | undefined)

Source from the content-addressed store, hash-verified

361}
362
363function parseTs(input: string | undefined): number {
364 if (!input) return 0;
365 const n = Date.parse(input);
366 return Number.isFinite(n) ? n : 0;
367}
368
369async function pathExists(p: string): Promise<boolean> {
370 try { await stat(p); return true; } catch { return false; }

Callers 1

tryReadSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected