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