MCPcopy
hub / github.com/stravu/crystal / formatForDatabase

Function formatForDatabase

main/src/utils/timestampUtils.ts:10–12  ·  view source on GitHub ↗
(date: Date = new Date())

Source from the content-addressed store, hash-verified

8 * @returns ISO 8601 formatted string
9 */
10export function formatForDatabase(date: Date = new Date()): string {
11 return date.toISOString();
12}
13
14/**
15 * Formats a timestamp for display to users

Callers 6

getCurrentLogFileNameMethod · 0.90
rotateLogIfNeededMethod · 0.90
logMethod · 0.90
getMainBranchStatusFunction · 0.90
getMainBranchStatusAsyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected