year

.year()

Returns the year for this Time instance. This is a full year, so for the year 2011, '2011' will be returned.

See also

month - day