[Python-checkins] bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) (GH-29863)
iritkatriel
webhook-mailer at python.org
Tue Nov 30 06:50:33 EST 2021
https://github.com/python/cpython/commit/031e2bb3326be542b224bbe35e7829846ea422cd
commit: 031e2bb3326be542b224bbe35e7829846ea422cd
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2021-11-30T11:50:28Z
summary:
bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801) (GH-29863)
(cherry picked from commit f97ec09baf8431494fd2ef5133090c7b0afd0551)
Co-authored-by: Vishal Pandey <vishalpandeyviptsk at gmail.com>
files:
M Doc/library/datetime.rst
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 0f8b70cdedb45..217cdf222b89b 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -2359,8 +2359,8 @@ requires, and these work on all platforms with a standard C implementation.
| | decimal number. | | \(9) |
+-----------+--------------------------------+------------------------+-------+
| ``%f`` | Microsecond as a decimal | 000000, 000001, ..., | \(5) |
-| | number, zero-padded on the | 999999 | |
-| | left. | | |
+| | number, zero-padded to 6 | 999999 | |
+| | digits. | | |
+-----------+--------------------------------+------------------------+-------+
| ``%z`` | UTC offset in the form | (empty), +0000, | \(6) |
| | ``±HHMM[SS[.ffffff]]`` (empty | -0400, +1030, | |
More information about the Python-checkins
mailing list