秒值转时分秒的转换
public static String transfom(final int time) {
int hh = time / 3600;
int mm = (time % 3600) / 60;
int ss = (time % 3600) % 60;
return (hh < 10 ? ("0" + hh) : hh) + ":" + (mm < 10 ? ("0" + mm) : mm) + ":" + (ss < 10 ? ("0" + ss) : ss);
}
不记得是谁写的了,突然想起来,还是比较方便的一段代码,保存自用。