常用类:
LocalDate类
LocalDate:表示年月日.
LocalTime类
LocalTime:代表小时-秒,
LocalDateTime类
LocalDateTime:代表年-月-日-时-分-秒.
Instant类
Instant类:作为中间转换类
Duration类
Duration类表示秒或纳秒时间间隔,适合处理较短的时间,需要更高的精确性.
ZonedDateTime类
ZonedDateTime:处理模糊的本地日期时间。
Date型转换成LocalDate
LocalDate转换成.Date
LocalDataTime时区
Calendar类转换为ZonedDateTime类
Calendar类转换为LocalDateTime类