File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2175,9 +2175,10 @@ Notes:
2175
2175
The UTC offset is not restricted to a whole number of minutes.
2176
2176
2177
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.
2178
+ When ``%z `` directive is provided to the :meth: `strptime ` method, any valid
2179
+ RFC-822/ISO 8601 standard utftime-offset can be parsed. For example, strings
2180
+ like ``'+01:00' `` will be parsed as an offset of one hour and or ``'Z' `` will
2181
+ be transofmred to a 0 utc offset.
2181
2182
2182
2183
``%Z ``
2183
2184
If :meth: `tzname ` returns ``None ``, ``%Z `` is replaced by an empty
Original file line number Diff line number Diff line change 1
- Add support for parsing utc offsets with colon when using %z in strptime
1
+ Add support for parsing RFC-822/ISO 8601 utf offsets
You can’t perform that action at this time.
0 commit comments