新增新用户充值礼物弹窗
This commit is contained in:
@@ -302,6 +302,23 @@ public class TimeUtil {
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static String getElapseTimeForNewUserCharge(long milliseconds) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
long seconds = milliseconds / 1000;
|
||||
if (seconds < 1) seconds = 1;
|
||||
|
||||
long day = seconds / (60 * 60 * 24);
|
||||
sb.append(day).append("天");
|
||||
|
||||
long hour = seconds / (60 * 60) % 24;
|
||||
sb.append(hour).append("时");
|
||||
|
||||
long minute = (seconds - 60 * 60 * hour) / 60;
|
||||
sb.append(minute).append("分");
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static String getElapseTimeForShow(int milliseconds) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int seconds = milliseconds / 1000;
|
||||
|
Reference in New Issue
Block a user