MCPcopy Index your code
hub / github.com/python/cpython / _tzstr

Method _tzstr

Lib/_pydatetime.py:1590–1593  ·  view source on GitHub ↗

Return formatted timezone offset (+xx:xx) or an empty string.

(self)

Source from the content-addressed store, hash-verified

1588 # Conversion to string
1589
1590 def _tzstr(self):
1591 """Return formatted timezone offset (+xx:xx) or an empty string."""
1592 off = self.utcoffset()
1593 return _format_offset(off)
1594
1595 def __repr__(self):
1596 """Convert to formal string, for repr()."""

Callers 1

isoformatMethod · 0.95

Calls 2

utcoffsetMethod · 0.95
_format_offsetFunction · 0.85

Tested by

no test coverage detected