inline operator fun YearMonth.component1(): Int
Return the year component of this YearMonth.
This method allows to use destructuring declarations when working with year-months, for example:
val (year, month) = myYearMonth
See Also
YearMonth.getYear