MCPcopy Create free account
hub / github.com/Tong89/smartNode / formatTime

Function formatTime

frontend/app.js:1460–1466  ·  view source on GitHub ↗
(seconds)

Source from the content-addressed store, hash-verified

1458 },
1459
1460 formatTime(seconds) {
1461 const total = Math.max(0, Math.floor(Number(seconds || 0)));
1462 const hours = Math.floor(total / 3600);
1463 const minutes = Math.floor((total % 3600) / 60);
1464 const secs = total % 60;
1465 return [hours, minutes, secs].map((part) => String(part).padStart(2, '0')).join(':');
1466 },
1467 },
1468});
1469

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected