routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
export function formatTime(seconds) {
|
||||
return [Math.floor(seconds % 60), Math.floor(seconds / 60 % 60), Math.floor(seconds / 60 / 60 % 60)].filter((x, i) => i < 2 || x > 0).reverse().map(String).map((x, i) => i > 0 ? x.padStart(2, '0') : x).join(':');
|
||||
}
|
||||
//# sourceMappingURL=timeUtils.js.map
|
||||
Reference in New Issue
Block a user