MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatTimestamp

Function formatTimestamp

src/commands/agents-platform/agents-platform.tsx:108–115  ·  view source on GitHub ↗
(value: string | null)

Source from the content-addressed store, hash-verified

106}
107
108function formatTimestamp(value: string | null): string {
109 if (!value) return 'Unknown'
110 const date = new Date(value)
111 if (Number.isNaN(date.getTime())) {
112 return value
113 }
114 return date.toLocaleString()
115}
116
117export function extractRoutineRecords(payload: unknown): RoutineRecord[] {
118 if (Array.isArray(payload)) {

Callers 2

getRoutineSubtitleFunction · 0.70
RoutineDetailFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected