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

Class _ttinfo

tools/python-3.11.9-amd64/Lib/zoneinfo/_zoneinfo.py:396–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394
395
396class _ttinfo:
397 __slots__ = ["utcoff", "dstoff", "tzname"]
398
399 def __init__(self, utcoff, dstoff, tzname):
400 self.utcoff = utcoff
401 self.dstoff = dstoff
402 self.tzname = tzname
403
404 def __eq__(self, other):
405 return (
406 self.utcoff == other.utcoff
407 and self.dstoff == other.dstoff
408 and self.tzname == other.tzname
409 )
410
411 def __repr__(self): # pragma: nocover
412 return (
413 f"{self.__class__.__name__}"
414 + f"({self.utcoff}, {self.dstoff}, {self.tzname})"
415 )
416
417
418_NO_TTINFO = _ttinfo(None, None, None)

Callers 4

_load_fileMethod · 0.85
_zoneinfo.pyFile · 0.85
__init__Method · 0.85
_parse_tz_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected