|
|
|
|
@ -176,9 +176,9 @@ public class TimeUtil {
|
|
|
|
|
long limit = SECONDS_OF_A_DAY; // 86400秒 = 1天
|
|
|
|
|
long diff = limit - usedSeconds; // diff > 0 表示剩余时间,diff < 0 表示超出时间
|
|
|
|
|
if (diff >= 0) { |
|
|
|
|
return "未超时/" + formatDuration(diff); |
|
|
|
|
return "未超时/用时:" + formatDuration(usedSeconds); |
|
|
|
|
} else { |
|
|
|
|
return "已超时/" + formatDuration(-diff); |
|
|
|
|
return "已超时/用时:" + formatDuration(usedSeconds); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|