//當前系統時間
LocalDateTime now = LocalDateTime.now();
//輸出now:2021-01-26T12:22:21.319
System.out.println(now);
//當前系統時間三天后
LocalDateTime threeDaysLater = now.plusDays(3);
//輸出threeDaysLater:2021-01-29T12:22:21.319
System.out.println(threeDaysLater);
//當前系統時間三天后零時
LocalDateTime midThreeDays= LocalDateTime.of(threeDaysLater.toLocalDate(), LocalTime.MIN);
//輸出midThreeDays:2021-01-29T00:00
System.out.println(midThreeDays);
//LocalDate獲取當前系統日期
LocalDate data= LocalDate.now();
//獲取指定年月日
LocalDate localDate = LocalDate.of(2021, 1, 1)
//獲取前一天的日期
LocalDate timeBf=localDate.plusDays(-1);(2020-12-31)