MCPcopy Create free account
hub / github.com/EasyIME/PIME / _parse_datetime

Method _parse_datetime

python/python3/tornado/options.py:628–634  ·  view source on GitHub ↗
(self, value: str)

Source from the content-addressed store, hash-verified

626 ]
627
628 def _parse_datetime(self, value: str) -> datetime.datetime:
629 for format in self._DATETIME_FORMATS:
630 try:
631 return datetime.datetime.strptime(value, format)
632 except ValueError:
633 pass
634 raise Error("Unrecognized date/time format: %r" % value)
635
636 _TIMEDELTA_ABBREV_DICT = {
637 "h": "hours",

Callers

nothing calls this directly

Calls 1

ErrorClass · 0.85

Tested by

no test coverage detected