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 0facd08 commit af68297Copy full SHA for af68297
Doc/library/datetime.rst
@@ -2174,6 +2174,11 @@ Notes:
2174
.. versionchanged:: 3.7
2175
The UTC offset is not restricted to a whole number of minutes.
2176
2177
+ .. versionchanged:: 3.7
2178
+ When ``%z`` directive is provided to the :meth:`strptime` method, offsets
2179
+ with colons will be parsed as well. For example, offsets like ``'+01:00'``
2180
+ will be parsed as an offset of one hour.
2181
+
2182
``%Z``
2183
If :meth:`tzname` returns ``None``, ``%Z`` is replaced by an empty
2184
string. Otherwise ``%Z`` is replaced by the returned value, which must
0 commit comments