|
@@ -101,9 +101,10 @@ public class DateUtil {
|
|
* @param end
|
|
* @param end
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static long diffDays(Date start, Date end) {
|
|
|
|
- return ChronoUnit.DAYS.between(
|
|
|
|
- LocalDate.ofInstant(start.toInstant(), DEFAULT_ZONE_ID),
|
|
|
|
- LocalDate.ofInstant(end.toInstant(), DEFAULT_ZONE_ID));
|
|
|
|
|
|
+ public static int diffDays(Date start, Date end) {
|
|
|
|
+ return (int)
|
|
|
|
+ ChronoUnit.DAYS.between(
|
|
|
|
+ LocalDate.ofInstant(end.toInstant(), DEFAULT_ZONE_ID),
|
|
|
|
+ LocalDate.ofInstant(start.toInstant(), DEFAULT_ZONE_ID));
|
|
}
|
|
}
|
|
}
|
|
}
|