|
@@ -167,6 +167,8 @@ public class DateDisposeUtils extends DateUtils {
|
|
|
|
|
|
Long aLong = addMinute(System.currentTimeMillis(), 10);
|
|
|
System.out.println(aLong);
|
|
|
+ Long bLong = addDays(System.currentTimeMillis(), 30);
|
|
|
+ System.out.println(bLong);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -203,4 +205,10 @@ public class DateDisposeUtils extends DateUtils {
|
|
|
Date minutes = addMinutes(date, amount);
|
|
|
return minutes.getTime();
|
|
|
}
|
|
|
+
|
|
|
+ public static Long addDays(Long time, int amount) {
|
|
|
+ Date date = new Date(time);
|
|
|
+ Date minutes = addDays(date, amount);
|
|
|
+ return minutes.getTime();
|
|
|
+ }
|
|
|
}
|