摘要: 一.简述 在Java8中,我们可以使用以下类来计算日期时间差异: 1.Period 2.Duration 3.ChronoUnit 二.Period类 主要是Period类方法getYears(),getMonths()和getDays()来计算. 示例: 结果: Today : 2017 06 1 阅读全文
posted @ 2019-10-01 14:04 李福春 阅读(7536) 评论(0) 推荐(0) 编辑