MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __mod__

Method __mod__

tools/python-3.11.9-amd64/Lib/datetime.py:821–825  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

819 return timedelta(0, 0, _divide_and_round(b * usec, a))
820
821 def __mod__(self, other):
822 if isinstance(other, timedelta):
823 r = self._to_microseconds() % other._to_microseconds()
824 return timedelta(0, 0, r)
825 return NotImplemented
826
827 def __divmod__(self, other):
828 if isinstance(other, timedelta):

Callers

nothing calls this directly

Calls 2

_to_microsecondsMethod · 0.95
timedeltaClass · 0.85

Tested by

no test coverage detected