getYear

fun getYear(): Int

Retrieves the year represented by @datetime in the Gregorian calendar.

Return

the year represented by @datetime

Since

2.26