7 lines
193 B
JavaScript
7 lines
193 B
JavaScript
|
function convertTicks (ticks) {
|
||
|
const s = (Math.floor(ticks / 20) % 60).toString()
|
||
|
return `${Math.floor((ticks / 20) / 60)}:${s.length >= 2 ? s : '0' + s}`
|
||
|
}
|
||
|
|
||
|
module.exports = convertTicks
|