cf.Data.year

Data.year

The year of each data array element.

Only applicable for reference time units.

See also

month, day, hour, minute, second

Examples

>>> d = cf.Data([[1.93, 5.17]], 'days since 2000-12-29')
>>> d
<CF Data: [[2000-12-30 22:19:12, 2001-01-03 04:04:48]] >
>>> d.year
<CF Data: [[2000, 2001]] >

Previous topic

cf.Data.varray

Next topic

cf.Data.all

This Page