public static String formatDuring(long 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);
return days + " 天 " + hours + " 时 " + minutes + " 分 " ;
}
通过毫秒值获得天时分
最新推荐文章于 2022-03-17 15:02:56 发布