Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ in_weeks
Method
in_weeks
src/pendulum/duration.py:226–227 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
224
return
self._invert
225
226
def
in_weeks(self) -> int:
227
return
int(self.total_weeks())
228
229
def
in_days(self) -> int:
230
return
int(self.total_days())
Callers
11
test_in_weeks
Function · 0.45
test_diff_in_weeks_positive
Function · 0.45
test_diff_in_weeks_negative_with_sign
Function · 0.45
test_diff_in_weeks_negative_no_sign
Function · 0.45
test_diff_in_weeks_vs_default_now
Function · 0.45
test_diff_in_weeks_ensure_is_truncated
Function · 0.45
test_diff_in_weeks_positive
Function · 0.45
test_diff_in_weeks_negative_with_sign
Function · 0.45
test_diff_in_weeks_negative_no_sign
Function · 0.45
test_diff_in_weeks_vs_default_now
Function · 0.45
test_diff_in_weeks_ensure_is_truncated
Function · 0.45
Calls
1
total_weeks
Method · 0.95
Tested by
11
test_in_weeks
Function · 0.36
test_diff_in_weeks_positive
Function · 0.36
test_diff_in_weeks_negative_with_sign
Function · 0.36
test_diff_in_weeks_negative_no_sign
Function · 0.36
test_diff_in_weeks_vs_default_now
Function · 0.36
test_diff_in_weeks_ensure_is_truncated
Function · 0.36
test_diff_in_weeks_positive
Function · 0.36
test_diff_in_weeks_negative_with_sign
Function · 0.36
test_diff_in_weeks_negative_no_sign
Function · 0.36
test_diff_in_weeks_vs_default_now
Function · 0.36
test_diff_in_weeks_ensure_is_truncated
Function · 0.36