MCPcopy Index your code
hub / github.com/RustPython/RustPython / _tzstr

Method _tzstr

Lib/_pydatetime.py:1570–1573  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1568 # Conversion to string
1569
1570 def _tzstr(self):
1571 """Return formatted timezone offset (+xx:xx) or an empty string."""
1572 off = self.utcoffset()
1573 return _format_offset(off)
1574
1575 def __repr__(self):
1576 """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