MCPcopy Create free account
hub / github.com/ShipSecAI/studio / formatTimestamp

Function formatTimestamp

frontend/src/components/timeline/EventInspector.tsx:301–310  ·  view source on GitHub ↗
(timestamp: string)

Source from the content-addressed store, hash-verified

299 };
300
301 const formatTimestamp = (timestamp: string): string => {
302 const date = new Date(timestamp);
303 const base = date.toLocaleTimeString('en-US', {
304 hour12: false,
305 hour: '2-digit',
306 minute: '2-digit',
307 second: '2-digit',
308 });
309 return `${base}.${String(date.getMilliseconds()).padStart(3, '0')}`;
310 };
311
312 const formatDuration = (start: string, end?: string): string => {
313 const startTime = new Date(start).getTime();

Callers 1

EventInspectorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected