android 时间的处理 将毫秒转化成 几分几秒
(02:23 类似格式)
/**
* 时间的处理
*
* @param time
* @return
*/
public static String getTimeFromInt(int time) {
if (time <= 0) {
return "0:00";
}
int secondnd = (time / 1000) / 60;
int million = (time / 1000) % 60;
String f = String.valueOf(secondnd);
String m = million >= 10 ? String.valueOf(million) : "0"
+ String.valueOf(million);
return f + ":" + m;
}