Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ total_weeks
Method
total_weeks
src/pendulum/duration.py:137–138 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
135
return
self.total_seconds() / SECONDS_PER_DAY
136
137
def
total_weeks(self) -> float:
138
return
self.total_days() / 7
139
140
if
PYPY:
141
Callers
2
in_weeks
Method · 0.95
test_in_weeks
Function · 0.80
Calls
1
total_days
Method · 0.95
Tested by
1
test_in_weeks
Function · 0.64