MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / fmt

Function fmt

e2e/viewer/src/SessionPlayer.tsx:47–50  ·  view source on GitHub ↗
(seconds: number)

Source from the content-addressed store, hash-verified

45type CastPlayer = AsciinemaPlayer.Player;
46
47const fmt = (seconds: number): string => {
48 const s = Math.max(0, Math.floor(seconds));
49 return `${Math.floor(s / 60)}:${String(s % 60).padStart(2, "0")}`;
50};
51
52/** The cast's own duration: timestamp of its last event (the file is local
53 * and line-delimited, cheaper and more deterministic than player events). */

Callers 1

SessionPlayerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected