MCPcopy
hub / github.com/stemdeckapp/stemdeck / fmtTime

Function fmtTime

static/js/utils.js:97–102  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

95}
96
97export function fmtTime(s) {
98 if (!isFinite(s) || s < 0) return "00:00";
99 const m = Math.floor(s / 60);
100 const sec = Math.floor(s % 60).toString().padStart(2, "0");
101 return `${m.toString().padStart(2, "0")}:${sec}`;
102}
103
104// Ruler tick: M:SS with no leading zero on the minutes digit ("0:30", "1:00", "12:30").
105export function fmtTickLabel(s) {

Callers 6

applyTrackInfoToPanelFunction · 0.90
renderRecentItemFunction · 0.90
wireUpAudioFunction · 0.90
driveTransportUiFunction · 0.90
updateFooterTimesFunction · 0.90
jobToCardFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected