]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Nov 2021 11:50:28 +0000 (03:50 -0800)
committerGitHub <noreply@github.com>
Tue, 30 Nov 2021 11:50:28 +0000 (11:50 +0000)
(cherry picked from commit f97ec09baf8431494fd2ef5133090c7b0afd0551)

Co-authored-by: Vishal Pandey <vishalpandeyviptsk@gmail.com>
Doc/library/datetime.rst

index 0f8b70cdedb45684ebcef01a92eb5dce228124bd..217cdf222b89b773fda515ea83e9da985fc90e89 100644 (file)
@@ -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,          |       |