Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ in_seconds
Method
in_seconds
src/pendulum/duration.py:238–239 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
236
return
int(self.total_minutes())
237
238
def
in_seconds(self) -> int:
239
return
int(self.total_seconds())
240
241
def
in_words(self, locale: str | None = None, separator: str =
" "
) -> str:
242
""
"
Callers
15
average
Method · 0.80
closest
Method · 0.80
farthest
Method · 0.80
closest
Method · 0.80
farthest
Method · 0.80
test_in_seconds
Function · 0.80
test_diff_in_seconds_positive
Function · 0.80
test_diff_in_seconds_positive_big
Function · 0.80
test_diff_in_seconds_negative_with_sign
Function · 0.80
test_diff_in_seconds_negative_no_sign
Function · 0.80
test_diff_in_seconds_vs_default_now
Function · 0.80
test_diff_in_seconds_ensure_is_truncated
Function · 0.80
Calls
1
total_seconds
Method · 0.95
Tested by
14
test_in_seconds
Function · 0.64
test_diff_in_seconds_positive
Function · 0.64
test_diff_in_seconds_positive_big
Function · 0.64
test_diff_in_seconds_negative_with_sign
Function · 0.64
test_diff_in_seconds_negative_no_sign
Function · 0.64
test_diff_in_seconds_vs_default_now
Function · 0.64
test_diff_in_seconds_ensure_is_truncated
Function · 0.64
test_diff_in_seconds_with_timezones
Function · 0.64
test_diff_in_seconds_positive
Function · 0.64
test_diff_in_seconds_positive_big
Function · 0.64
test_diff_in_seconds_negative_with_sign
Function · 0.64
test_diff_in_seconds_negative_no_sign
Function · 0.64