We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d4fc2 commit 29b506bCopy full SHA for 29b506b
Lib/_pydatetime.py
@@ -2119,7 +2119,9 @@ def astimezone(self, tz=None):
2119
# Ways to produce a string.
2120
2121
def _tzstr(self, basic):
2122
- """Return formatted timezone offset (+xx:xx) or an empty string."""
+ """Return formatted timezone offset (+xx:xx) or an empty string.
2123
+ The colon separator is omitted if *basic* is true.
2124
+ """
2125
off = self.utcoffset()
2126
sep = '' if basic else ':'
2127
return _format_offset(off, sep)
0 commit comments