int类型变量命名
This commit is contained in:
parent
d16be6ca46
commit
2881cb0204
|
|
@ -660,7 +660,7 @@ public class DateTimeHelper {
|
|||
Date now = new Date();
|
||||
System.out.println("当前时间:" + sdf.format(now));
|
||||
//30分钟
|
||||
long time = 30 * 60 * 1000;
|
||||
int time = 30 * 60 * 1000;
|
||||
//30分钟后的时间
|
||||
Date afterDate = new Date(now.getTime() + time);
|
||||
System.out.println(sdf.format(afterDate));
|
||||
|
|
|
|||
Loading…
Reference in New Issue