YearMonth.minusMonths

Returns a copy of this {@code YearMonth} with the specified number of months subtracted. !(p) This instance is immutable and unaffected by this method call.

@param monthsToSubtract the months to subtract, may be negative @return a {@code YearMonth} based on this year-month with the months subtracted, not null @throws DateTimeException if the result exceeds the supported range

class YearMonth
minusMonths

Meta