MCPcopy
hub / github.com/KeygraphHQ/shannon / formatTimestamp

Function formatTimestamp

apps/worker/src/utils/formatting.ts:34–36  ·  view source on GitHub ↗
(timestamp: number = Date.now())

Source from the content-addressed store, hash-verified

32 * Format timestamp to ISO 8601 string
33 */
34export function formatTimestamp(timestamp: number = Date.now()): string {
35 return new Date(timestamp).toISOString();
36}
37
38/**
39 * Calculate percentage

Callers 15

startAgentMethod · 0.85
endAgentMethod · 0.85
writeHeaderMethod · 0.85
logResumeHeaderMethod · 0.85
writeHeaderMethod · 0.85
logEventMethod · 0.85
savePromptMethod · 0.85
createInitialDataMethod · 0.85
endAgentMethod · 0.85
updateSessionStatusMethod · 0.85
addResumeAttemptMethod · 0.85
writeErrorLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected