Period.plusMonths

Returns a copy of this period with the specified months added. !(p) This adds the amount to the months unit _in a copy of this period. The years and days units are unaffected. For example, "1 year, 6 months and 3 days" plus 2 months returns "1 year, 8 months and 3 days". !(p) This instance is immutable and unaffected by this method call.

@param monthsToAdd the months to add, positive or negative @return a {@code Period} based on this period with the specified months added, not null @throws ArithmeticException if numeric overflow occurs

class Period
plusMonths

Meta