YearMonth plus(long,unit) method in Java with Examples
The plus(long, unit) method of YearMonth class used to return a copy of this Year-month after adding the specified amount of TemporalUnit to this Year-month object. An exception is thrown, If the specified unit cannot be added to Year-month. This instance is immutable and unaffected by this method c