commit | 92878829c31ab2fc71c60555ce87a5f6cbc876f0 | [log] [tgz] |
---|---|---|
author | Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> | Sat Oct 06 00:57:02 2018 +0200 |
committer | Alexander Belopolsky <abalkin@users.noreply.github.com> | Fri Oct 05 18:57:02 2018 -0400 |
tree | 2005d50b3f89f7e5bc6d031dc0fe991141d3ca8f | |
parent | 7bb9cd0a6766fd3e7b3c1e8f2315304ae192b34c [diff] |
bpo-34158: Documentation UTC offset update (GH-8377) * 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/files#diff-25e2d173c84057d069b7890450714eddR214. Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/files#diff-acc40bec51c7de832de3361db3edae52R309. Table at https://docs.python.org/3.7/library/datetime.html#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/files#diff-25e2d173c84057d069b7890450714eddR176 Relevant test case at https://github.com/python/cpython/pull/4699/files#diff-25e2d173c84057d069b7890450714edd * From Martin Panter: some style improvment; From @pganssle: using f for fractional part of seconds in all file.