MCPcopy Create free account
hub / github.com/bjsi/incremental-everything / formatTime

Function formatTime

src/components/Video.tsx:25–29  ·  view source on GitHub ↗
(seconds: number)

Source from the content-addressed store, hash-verified

23
24/** Format seconds to MM:SS */
25const formatTime = (seconds: number): string => {
26 const m = Math.floor(seconds / 60);
27 const s = Math.floor(seconds % 60);
28 return `${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;
29};
30
31type ExtractState =
32 | { phase: 'idle' }

Callers 2

handleSetEndFunction · 0.70
VideoViewerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected