DateTime.getYear

Retrieves the year represented by datetime in the Gregorian calendar. Since 2.26

class DateTime
int
getYear
()

Return Value

Type: int

the year represented by datetime

Meta