refactor: added timeUtils

This commit is contained in:
Prayas Lashkari
2026-03-12 18:43:10 -04:00
parent c48243360b
commit 948e2b1e4a
+7
View File
@@ -0,0 +1,7 @@
export function formatTimePadded(seconds: number) {
const m = Math.floor(seconds / 60)
.toString()
.padStart(2, "0");
const s = (seconds % 60).toString().padStart(2, "0");
return `${m}:${s}`;
}