fix: 公共模块,功能优化完善。
This commit is contained in:
@@ -158,7 +158,21 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
|
|||||||
long min = diff % nd % nh / nm;
|
long min = diff % nd % nh / nm;
|
||||||
// 计算差多少秒//输出结果
|
// 计算差多少秒//输出结果
|
||||||
// long sec = diff % nd % nh % nm / ns;
|
// long sec = diff % nd % nh % nm / ns;
|
||||||
return day + "天" + hour + "小时" + min + "分钟";
|
if(day>0){
|
||||||
|
return day + "天" + hour + "小时" + min + "分钟";
|
||||||
|
}else {
|
||||||
|
if(hour>0){
|
||||||
|
if(min>0){
|
||||||
|
return hour + "小时" + min + "分钟";
|
||||||
|
}else {
|
||||||
|
return hour + "小时";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return min + "分钟";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user