MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / _to_seconds

Function _to_seconds

tests/test_code/py/pytz/tzinfo.py:61–63  ·  view source on GitHub ↗

Convert a timedelta to seconds

(td)

Source from the content-addressed store, hash-verified

59
60
61def _to_seconds(td):
62 '''Convert a timedelta to seconds'''
63 return td.seconds + td.days * 24 * 60 * 60
64
65
66class BaseTzInfo(tzinfo):

Callers 1

__reduce__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected