For users
apply_ufunc
For developers/contributors
Community
DataArray.dt.
year
The year of the datetime
previous
xarray.DataArray.str.zfill
next
xarray.DataArray.dt.month