This LocalDate instance is immutable and unaffected by this method call.
The following three lines are identical in effect:
LocalDate added = dt.plusYears(6); LocalDate added = dt.plus(Period.years(6)); LocalDate added = dt.withFieldAdded(DurationFieldType.years(), 6);@param years the amount of years to add, may be negative @return the new LocalDate plus the increased years
|
|
|
|
|
|
|
|
|
|
|
|
|
|