MCPcopy Create free account
hub / github.com/dateutil/dateutil / _zi_seconds

Function _zi_seconds

tests/test_tzpath_data.py:224–227  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

222
223
224def _zi_seconds(value):
225 sign = -1 if value.startswith("-") else 1
226 parts = [int(part) for part in value.lstrip("-").split(":")] + [0, 0]
227 return sign * (parts[0] * 3600 + parts[1] * 60 + parts[2])
228
229
230def _zi_until(fields):

Callers 2

_zi_untilFunction · 0.85
_parse_tzdata_ziFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected