For users
apply_ufunc
For developers/contributors
Community
DataArray.dt.
is_leap_year
Boolean indicator if the date belongs to a leap year.
previous
xarray.DataArray.dt.is_year_start
next
xarray.DataArray.dt.floor