This commit is contained in:
@@ -1527,6 +1527,17 @@ public final class Utility {
|
|||||||
return cal.get(Calendar.YEAR) * 10000 + (cal.get(Calendar.MONTH) + 1) * 100 + cal.get(Calendar.DAY_OF_MONTH);
|
return cal.get(Calendar.YEAR) * 10000 + (cal.get(Calendar.MONTH) + 1) * 100 + cal.get(Calendar.DAY_OF_MONTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取明天151230格式的int值
|
||||||
|
*
|
||||||
|
* @return 151230格式的int值
|
||||||
|
*/
|
||||||
|
public static int tomorrowYYMMDD() {
|
||||||
|
Calendar cal = Calendar.getInstance();
|
||||||
|
cal.add(Calendar.DAY_OF_YEAR, 1);
|
||||||
|
return cal.get(Calendar.YEAR) % 100 * 10000 + (cal.get(Calendar.MONTH) + 1) * 100 + cal.get(Calendar.DAY_OF_MONTH);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取昨天20151230格式的int值
|
* 获取昨天20151230格式的int值
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user