效果

实现
private String secondToTime(Integer thsc) {
if (thsc == null) {
thsc = 0;
}
long minutes =0;
long hours=0;
if(thsc>60){
minutes = thsc / 60;
thsc = thsc % 60;
if(minutes>60){
hours = thsc / 3600;
thsc = thsc % 3600;
}
}
String hh = (hours < 10) ? "0"+hours: hours+"";
String mm = (minutes < 10) ? "0"+minutes: minutes+"";
String ss = (thsc < 10) ? "0"+thsc: thsc+"";
return hh+""+mm+":"+ss;
}
formatterMin (row, column, cellValue) {
if (!cellValue) {
cellValue = 0
}
var theTime = parseInt(cellValue)
var theTime1 = 0
var theTime2 = 0
if (theTime > 60) {
theTime1 = parseInt(theTime / 60)
theTime = parseInt(theTime % 60)
if (theTime1 > 60) {
theTime2 = parseInt(theTime1 / 60)
theTime1 = parseInt(theTime1 % 60)
}
}
theTime = (theTime < 10) ? `0${theTime}` : theTime
theTime2 = (theTime2 < 10) ? `0${theTime2}` : theTime2
theTime1 = (theTime1 < 10) ? `0${theTime1}` : theTime1
return `${theTime2}:${theTime1}:${theTime}`
},