This commit is contained in:
Redkale
2020-04-01 13:33:04 +08:00
parent ec6e5aa3b1
commit 683cec6f4d

View File

@@ -1516,6 +1516,17 @@ public final class Utility {
+ today.getHour() * 100_00 + today.getMinute() * 100 + today.getSecond();
}
/**
* 获取明天20151230格式的int值
*
* @return 20151230格式的int值
*/
public static int tomorrow() {
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DAY_OF_YEAR, 1);
return cal.get(Calendar.YEAR) * 10000 + (cal.get(Calendar.MONTH) + 1) * 100 + cal.get(Calendar.DAY_OF_MONTH);
}
/**
* 获取昨天20151230格式的int值
*