From 683cec6f4db55b0b3dbd27415b52c955e2c4bc3d Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Wed, 1 Apr 2020 13:33:04 +0800 Subject: [PATCH] --- src/org/redkale/util/Utility.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/org/redkale/util/Utility.java b/src/org/redkale/util/Utility.java index 644078b5c..1b8f4d775 100644 --- a/src/org/redkale/util/Utility.java +++ b/src/org/redkale/util/Utility.java @@ -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值 *