Getting Started
User Guide
Help & reference
DataArray.dt.
round
Round timestamps to specified frequency resolution.
freq (str) – a freq string indicating the rounding resolution e.g. “D” for daily resolution
str
rounded timestamps (same type as values) – Array-like of datetime fields accessed for each element in values
same type as values