LocalDate使用笔记
LocalDate.now();
LocalTime.now();
LocalDateTime.now();
LocalDate.of(2020,06,05);
LocalDate.parse("2020-06-05");
LocalDate.now().with(TemporalAdjusters.firstDayOfMonth());
LocalDate.now().withDayOfMonth(n);
LocalDate.now().with(TemporalAdjusters.lastDayOfMonth());
LocalDate.now().minusDays(1);
LocalDate.now().minusWeeks(1);
LocalDate.now().minusMonths(1);
LocalDate.now().minusYears(1)
LocalDate.now().plusDays(1);
LocalDate.now().plusWeeks(1);
LocalDate.now().plusMonths(1);
LocalDate.now().plusYears(1);
LocalDate date = LocalDate.of(2020,06,05);
LocalDate nowDate = LocalDate.now();
ChronoUnit.DAYS.between(date, nowDate);