For users
apply_ufunc
For developers/contributors
Community
DataArray.dt.
year
The year of the datetime