MCPcopy Index your code
hub / github.com/winfunc/opcode / formatISOTimestamp

Function formatISOTimestamp

src/lib/date-utils.ts:52–55  ·  view source on GitHub ↗
(isoString: string)

Source from the content-addressed store, hash-verified

50 * formatISOTimestamp("2025-01-04T10:13:29.000Z") // "Jan 4, 2025"
51 */
52export function formatISOTimestamp(isoString: string): string {
53 const date = new Date(isoString);
54 return formatUnixTimestamp(Math.floor(date.getTime() / 1000));
55}
56
57/**
58 * Truncates text to a specified length with ellipsis

Callers 7

AgentRunsListFunction · 0.90
RunningClaudeSessionsFunction · 0.90
handleCopyAsMarkdownFunction · 0.90
AgentRunOutputViewerFunction · 0.90
AgentRunViewFunction · 0.90
AgentsModalFunction · 0.90

Calls 1

formatUnixTimestampFunction · 0.85

Tested by

no test coverage detected