I am having total Minutes and i want to convert that total minutes into number of Days, Hours and Minutes format.
var duration = getControlValue('incident','incident_open_duration');
var formattedDuration = duration/24/60 + ":" + duration/60%24 + ':' + duration%60);
alert(formattedDuration);
If the total minutes is 8289.66 , the above line of code returns 5.756708333333333:18.161:9.659999999999854
I don't need decimals, i want to eliminate and round off them so i used Math.floor(time/24/60) + ":" + Math.floor(time/60%24) + ':' + Math.floor(time%60) but unfortunately my tool is not supporting Math.floor function
Do we have any other way of achieving this ?