计算日期之间的时间差

long daysDiff = ChronoUnit.DAYS.between(startDate, endDate);

 

posted @ 2018-10-09 20:53  zslm___  阅读(268)  评论(0编辑  收藏  举报