MCPcopy Create free account
hub / github.com/cortexkit/magic-context / isoFromMs

Function isoFromMs

packages/cli/src/commands/migrate.ts:224–228  ·  view source on GitHub ↗
(ms: number | undefined, fallback: Date)

Source from the content-addressed store, hash-verified

222}
223
224function isoFromMs(ms: number | undefined, fallback: Date): string {
225 return new Date(
226 typeof ms === "number" && Number.isFinite(ms) ? ms : fallback.getTime(),
227 ).toISOString();
228}
229
230function textFromUnknown(value: unknown): string {
231 if (value === undefined || value === null) return "";

Callers 1

buildPiEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected