javascript convert milliseconds to hh mm ss

166

javascript convert milliseconds to hh mm ss -

var result = Math.floor(myDuration/(1000*60*60)) + ":" + Math.floor(myDuration/(1000*60))%60 + ":" + Math.floor(myDuration/1000)%60;

Comments

Submit
0 Comments