将毫秒换算成天、时、分、秒
public static String formatDuring(mss) {long days = mss / (1000 * 60 * 60 * 24);long hours = (mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60);long minutes = (mss % (1000 * 60 * 60)) / (1000 * 60);long seconds = (mss % (1000 * 60)) / 1000;return days + "天" + hours + "时" + minutes + "分"+ seconds + "秒 ";}
formatDuring(90000)
在小程序中查看