Java8
Java8中计算日期时间差
· ☕ 2 分钟 · 🤖 liuwenxu
在 Java中,我们要获取一个时间段的天数,我们可以使用下面几种方式: Period @since 1.8 Duration @since 1.8 ChronoUnit @since 1.8 一. 参数声明 1