Update README.md

This commit is contained in:
Jonathan Cook
2019-10-13 23:40:45 +02:00
committed by GitHub
parent db85c8f275
commit d17e102e39
20392 changed files with 1639367 additions and 0 deletions
@@ -0,0 +1,15 @@
package com.baeldung.datetime;
import java.time.LocalDate;
import java.time.Period;
class UsePeriod {
LocalDate modifyDates(LocalDate localDate, Period period) {
return localDate.plus(period);
}
Period getDifferenceBetweenDates(LocalDate localDate1, LocalDate localDate2) {
return Period.between(localDate1, localDate2);
}
}