fun copy(year: Int = this.year, month: Month = this.month): YearMonth
Returns a copy of this year-month with the values of any individual components replaced by the new values specified.
DateTimeException - if the year is invalid
fun copy(year: Int = this.year, monthNumber: Int): YearMonth
Returns a copy of this year-month with the values of any individual components replaced by the new values specified.