]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-34158: Documentation UTC offset update (GH-8377) (GH-9732)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 6 Oct 2018 02:44:23 +0000 (19:44 -0700)
committerNed Deily <nad@python.org>
Sat, 6 Oct 2018 02:44:23 +0000 (22:44 -0400)
commit0991b9bb94036e0f271d223c8db7d81980c76736
tree3d559c81a935a1b5bad87b775778ad18e74532de
parent2fcaaaca520670123224b6e84068f5e453c04f07
[3.7] bpo-34158: Documentation UTC offset update (GH-8377) (GH-9732)

* Documentation of UTC offset update
Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update:

- "%z" format code documentation update
Karthikeyan Singaravelan commented on bugs.python.org:
Added as part of 018d353c1c8c87767d2335cd884017c2ce12e045 and a fix regarding duplicate words for that part was added at bac2d5ba30339298db7d4caa9c8cd31d807cf081.
Relevant format string at https://github.com/python/cpython/pull/2896/filesGH-diff-25e2d173c84057d069b7890450714eddR214.
Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/filesGH-diff-acc40bec51c7de832de3361db3edae52R309.
Table at https://docs.python.org/3.7/library/datetime.htmlGH-strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column
%z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030

- isoformat documentation update
According to me, needs confirmation:
Relevant format string at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714eddR176
Relevant test case at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714edd

* From Martin Panter: some style improvment;
From @pganssle: using f for fractional part of seconds in all file.
(cherry picked from commit 92878829c31ab2fc71c60555ce87a5f6cbc876f0)

Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
Doc/library/datetime.rst