MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / total_seconds

Function total_seconds

src/scancode/outdated.py:76–81  ·  view source on GitHub ↗
(td)

Source from the content-addressed store, hash-verified

74
75
76def total_seconds(td):
77 if hasattr(td, 'total_seconds'):
78 return td.total_seconds()
79 else:
80 val = td.microseconds + (td.seconds + td.days * 24 * 3600) * 10 ** 6
81 return val / 10 ** 6
82
83
84class VersionCheckState:

Callers 1

fetch_newer_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected