function formatSecondToHHmmss(time) {
time = Number(time);
if (time < 0) time = 0;
let str = ''
const secs = Math.floor(time / 1000);
const sec = Math.floor(secs % 60);
const mins = Math.floor(secs / 60);
const min = Math.floor(mins % 60);
const hour = Math.floor(mins / 60);
str = `${fixedTwo(hour)}:${fixedTwo(min)}:${fixedTwo(sec)}`;
return str;
}
console.log(formatSecondToHHmmss(75000)) // 00:01:15