MCPcopy
hub / github.com/pydata/xarray / normalize_date

Function normalize_date

xarray/coding/cftime_offsets.py:850–852  ·  view source on GitHub ↗

Round datetime down to midnight.

(date)

Source from the content-addressed store, hash-verified

848
849
850def normalize_date(date):
851 """Round datetime down to midnight."""
852 return date.replace(hour=0, minute=0, second=0, microsecond=0)
853
854
855def _get_normalized_cfdate(date, calendar, normalize):

Callers 3

_get_range_edgesFunction · 0.90
_adjust_dates_anchoredFunction · 0.90
_get_normalized_cfdateFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…