时间格式转化:
Double time = 0.5;
public String calcNumToTime(Double time) {
int unit = 60;
time = time * unit;
int hours = (int) Math.floor(time / 60);
int minute = (int) (time % 60);
String h = String.format("%02d", hours);
String m = String.format("%02d", minute);
return h + ":" + m;
}