jdk8相对于jdk7而言进行了优化
比较常用的时间类:
Date类:ZoneId:时区、Instant:时间戳、ZoneDateTime:带时区的时间I
日期格式化类(SimpleDateFormat):DateTimeFormatter用于时间的格式化和解析
日历类Calendar:LocalDate:年、月、日;LocalTime:时、分、秒;LocalDateTime:年、月、日+时、分、秒
工具类:Duration:时间间隔(秒, 纳秒)、Period:时间间隔(年,月,日)、ChronoUnit:时间间隔(所有单位)