We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c84212a commit 2dae63eCopy full SHA for 2dae63e
xarray/coding/times.py
@@ -306,7 +306,8 @@ def _cast_timestamp_to_coarsest_resolution(timestamp: pd.Timestamp) -> pd.Timest
306
for unit in _ORDERED_PANDAS_TIME_RESOLUTIONS:
307
coarsest_timestamp = timestamp.as_unit(unit)
308
if coarsest_timestamp == timestamp:
309
- return coarsest_timestamp
+ break
310
+ return coarsest_timestamp
311
312
313
def _unpack_time_unit_and_ref_date(
0 commit comments