MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / formatTimestamp

Function formatTimestamp

scripts/tmux/tmux-viewer/gif-exporter.ts:174–186  ·  view source on GitHub ↗

* Format ISO timestamp into readable time

(isoTimestamp: string)

Source from the content-addressed store, hash-verified

172 * Format ISO timestamp into readable time
173 */
174function formatTimestamp(isoTimestamp: string): string {
175 try {
176 const date = new Date(isoTimestamp)
177 return date.toLocaleTimeString('en-US', {
178 hour: '2-digit',
179 minute: '2-digit',
180 second: '2-digit',
181 hour12: false,
182 })
183 } catch {
184 return isoTimestamp.slice(11, 19)
185 }
186}
187
188/**
189 * Export session replay as an animated GIF

Callers 1

renderFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected