cf.Index.year

Index.year

The year of each date-time data array element.

Only applicable to data arrays with reference time units.

See also

month, day, hour, minute, second

Examples

>>> print(f.datetime_array)
[1950-11-15 00:00:00  1950-12-16 12:30:00  1951-01-16 12:00:45]
>>> print(f.year.array)
[1950  1950  1951]