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

Method _could_be_tzname

src/dateutil/parser/_parser.py:1056–1062  ·  view source on GitHub ↗
(self, hour, tzname, tzoffset, token)

Source from the content-addressed store, hash-verified

1054 (res.second, res.microsecond) = self._parsems(value_repr)
1055
1056 def _could_be_tzname(self, hour, tzname, tzoffset, token):
1057 return (hour is not None and
1058 tzname is None and
1059 tzoffset is None and
1060 len(token) <= 5 and
1061 (all(x in string.ascii_uppercase for x in token)
1062 or token in self.info.UTCZONE))
1063
1064 def _ampm_valid(self, hour, ampm, fuzzy):
1065 """

Callers 1

_parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected