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