Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ secs
Function
secs
Lib/test/test_logging.py:7223–7224 ·
view source on GitHub ↗
(**kw)
Source
from the content-addressed store, hash-verified
7221
7222
7223
def
secs(**kw):
7224
return
datetime.timedelta(**kw) // datetime.timedelta(seconds=1)
7225
7226
for
when, exp in ((
'S'
, 1),
7227
(
'M'
, 60),
Callers
2
test_logging.py
File · 0.85
test_compute_rollover
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…