copy

Returns a copy of this year-month with the values of any individual components replaced by the new values specified.

fun copy(year: Int, month: Month): YearMonth
fun copy(year: Int, monthNumber: Int): YearMonth