LocalDate

2017-08-22  本文已影响0人  xdoyf
1.计算时间差:
ChronoUnit.DAYS.between(fromDate, toDate);

ChronoUnit是一个枚举类,除DAYS外还包括其他时间单位。

上一篇 下一篇

猜你喜欢

热点阅读