inline operator fun LocalDate.component1(): Int
Return the year of this LocalDate.
This method allows to use destructuring declarations when working with dates, for example:
val (year, month, day) = myLocalDate
See Also
LocalDate.getYear