1.获取时间(JDK8)// 获取日期
LocalDate localDate = LocalDate.now();
System.out.println(localDate);
// 获取时间
LocalTime localTime =
2020-05-25