(abbr, names)
| 215 | |
| 216 | |
| 217 | def _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 | |
| 224 | def _zi_seconds(value): |