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

Function formatTimestamp

apps/kimi-web/src/composables/useKimiWebClient.ts:966–969  ·  view source on GitHub ↗
(ms: number | undefined)

Source from the content-addressed store, hash-verified

964}
965
966function formatTimestamp(ms: number | undefined): string | undefined {
967 if (typeof ms !== 'number' || !Number.isFinite(ms)) return undefined;
968 return new Date(ms).toISOString();
969}
970
971function formatDuration(ms: number | undefined): string | undefined {
972 if (typeof ms !== 'number' || !Number.isFinite(ms)) return undefined;

Callers 1

errorDetailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected