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

Function _zi_lookup

tests/test_tzpath_data.py:217–221  ·  view source on GitHub ↗
(abbr, names)

Source from the content-addressed store, hash-verified

215
216
217def _zi_lookup(abbr, names):
218 # tzdata.zi uses the shortest unambiguous abbreviations, e.g. "Ja", "Au"
219 matches = [i for i, name in enumerate(names) if name.startswith(abbr)]
220 assert len(matches) == 1, abbr
221 return matches[0]
222
223
224def _zi_seconds(value):

Callers 1

_zi_untilFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected