MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _check_tzinfo_arg

Function _check_tzinfo_arg

tools/python-3.11.9-amd64/Lib/datetime.py:545–547  ·  view source on GitHub ↗
(tz)

Source from the content-addressed store, hash-verified

543 return hour, minute, second, microsecond, fold
544
545def _check_tzinfo_arg(tz):
546 if tz is not None and not isinstance(tz, tzinfo):
547 raise TypeError("tzinfo argument must be None or of a tzinfo subclass")
548
549def _cmperror(x, y):
550 raise TypeError("can't compare '%s' to '%s'" % (

Callers 3

__new__Method · 0.85
__new__Method · 0.85
fromtimestampMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected