MCPcopy Index your code
hub / github.com/RustPython/RustPython / total_seconds

Method total_seconds

Lib/_pydatetime.py:776–779  ·  view source on GitHub ↗

Total seconds in the duration.

(self)

Source from the content-addressed store, hash-verified

774 return s
775
776 def total_seconds(self):
777 """Total seconds in the duration."""
778 return ((self.days * 86400 + self.seconds) * 10**6 +
779 self.microseconds) / 10**6
780
781 # Read-only field accessors
782 @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