MCPcopy Index your code
hub / github.com/python/cpython / total_seconds

Method total_seconds

Lib/_pydatetime.py:785–788  ·  view source on GitHub ↗

Total seconds in the duration.

(self)

Source from the content-addressed store, hash-verified

783 return s
784
785 def total_seconds(self):
786 """Total seconds in the duration."""
787 return ((self.days * 86400 + self.seconds) * 10**6 +
788 self.microseconds) / 10**6
789
790 # Read-only field accessors
791 @property

Callers 8

timestampMethod · 0.80
_write_objectMethod · 0.80
test_total_secondsMethod · 0.80
construct_zoneMethod · 0.80
fromutcMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_total_secondsMethod · 0.64
construct_zoneMethod · 0.64