MCPcopy Index your code
hub / github.com/pydata/xarray / _total_microseconds

Function _total_microseconds

xarray/coding/cftimeindex.py:842–854  ·  view source on GitHub ↗

Compute the total number of microseconds of a datetime.timedelta. Parameters ---------- delta : datetime.timedelta Input timedelta. Returns ------- int

(delta)

Source from the content-addressed store, hash-verified

840
841
842def _total_microseconds(delta):
843 """Compute the total number of microseconds of a datetime.timedelta.
844
845 Parameters
846 ----------
847 delta : datetime.timedelta
848 Input timedelta.
849
850 Returns
851 -------
852 int
853 """
854 return delta / timedelta(microseconds=1)
855
856
857def _floor_int(values, unit):

Callers 2

asi8Method · 0.85
_round_via_methodMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…