getYear

open fun getYear(): Int(source)

Gets the current year.

Return

The current year. If the calendar is lunar, it returns the lunar year. Otherwise, it returns the Gregorian year from the current date.