Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ total_hours
Method
total_hours
src/pendulum/duration.py:131–132 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
129
return
self.total_seconds() / SECONDS_PER_MINUTE
130
131
def
total_hours(self) -> float:
132
return
self.total_seconds() / SECONDS_PER_HOUR
133
134
def
total_days(self) -> float:
135
return
self.total_seconds() / SECONDS_PER_DAY
Callers
2
in_hours
Method · 0.95
test_in_hours
Function · 0.80
Calls
1
total_seconds
Method · 0.95
Tested by
1
test_in_hours
Function · 0.64