MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / padZero

Function padZero

scripts/web_timer.js:483–485  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

481 }
482
483 function padZero(num) {
484 return num.toString().padStart(2, "0");
485 }
486
487 function secondsToTime(secs) {
488 let hours = Math.floor(secs / 3600);

Callers 1

formatDateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected