代码
private static String getMinutes(int seconds){
if(seconds>0){
int remainder = seconds % 60;
int minutes = (seconds - remainder) / 60;
String minute = String.valueOf(minutes).length()<2 ? "0"+minutes : String.valueOf(minutes);
String second = String.valueOf(remainder).length()<2 ? "0"+remainder : String.valueOf(remainder);
return minute+":"+second;
}
return "00:00";
}
标签:60,Java,String,seconds,转化,int,xx
From: https://www.cnblogs.com/freedomlog/p/17523413.html