public String getGapTime(long time){
long hours = time / (1000 * 60 * 60);
long minutes = (time-hours*(1000 * 60 * 60 ))/(1000* 60);
String diffTime="";
if(minutes<10){
diffTime=hours+":0"+minutes;
}else{
diffTime=hours+":"+minutes;
}
return diffTime;
}
热门工具 换一换