LocalDate.plus() and minus() does not work with Durations. LocalDate represents civil time (years/months/days), so java.time.Period is the appropriate thing to add or subtract instead.
Read full article from LocalDateTemporalAmount
Read full article from LocalDateTemporalAmount
No comments:
Post a Comment