Take a number and convert it to h:m format ie 8 => 0:8, 120 => 2:0.
h:m
0:8
2:0
function TimeConvert(num) { const hour = (num - (num % 60)) / 60; const minute = num - hour * 60; return `${hour}:${minute}`; }copy
function TimeConvert(num) { const hour = (num - (num % 60)) / 60; const minute = num - hour * 60; return `${hour}:${minute}`; }