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

Function _check_tzname

tools/python-3.11.9-amd64/Lib/datetime.py:492–495  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

490
491# Just raise TypeError if the arg isn't None or a string.
492def _check_tzname(name):
493 if name is not None and not isinstance(name, str):
494 raise TypeError("tzinfo.tzname() must return None or string, "
495 "not '%s'" % type(name))
496
497# name is the offset-producing method, "utcoffset" or "dst".
498# offset is what it returned.

Callers 2

tznameMethod · 0.85
tznameMethod · 0.85

Calls 1

typeClass · 0.50

Tested by

no test coverage detected