枚举类的使用
java.time.temporal.ChronoUnit

使用 ChronoUnit 的包
描述
使用字段和单位以及日期时间调整器访问日期和时间。
通常在并发编程中有用的实用程序类。