MCPcopy
hub / github.com/cool-RR/PySnooper / timedelta_parse

Function timedelta_parse

pysnooper/pycompat.py:90–97  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

88 return time_isoformat(time, timespec='microseconds')
89
90def timedelta_parse(s):
91 hours, minutes, seconds, microseconds = map(
92 int,
93 s.replace('.', ':').split(':')
94 )
95 return datetime_module.timedelta(hours=hours, minutes=minutes,
96 seconds=seconds,
97 microseconds=microseconds)
98

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected