判断两个时间戳相差几天

 LocalDate start = new LocalDate(xxx.getStartTime());
 LocalDate end = new LocalDate(xxx.getEndTime());
 int days = Days.daysBetween(start,end).getDays();

days即为两个时间戳相差几天

猜你喜欢

转载自blog.csdn.net/qq_39082699/article/details/98987879