LocalDate 2017-08-22 本文已影响0人 xdoyf 1.计算时间差: ChronoUnit.DAYS.between(fromDate, toDate); ChronoUnit是一个枚举类,除DAYS外还包括其他时间单位。