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

Function formatPiFilenameTimestamp

packages/cli/src/commands/migrate.ts:195–197  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

193}
194
195export function formatPiFilenameTimestamp(date: Date): string {
196 return date.toISOString().replaceAll(":", "-").replace(".", "-");
197}
198
199export function generateUuidV7(date = new Date()): string {
200 const bytes = randomBytes(16);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected