xarray.CFTimeIndex.round

CFTimeIndex.round(freq)

Round dates to a fixed frequency.

Parameters

freq (str) – The frequency level to round the index to. Must be a fixed frequency like ‘S’ (second) not ‘ME’ (month end). See frequency aliases for a list of possible values.

Returns

Return type

CFTimeIndex