[Python-checkins] bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801)

iritkatriel webhook-mailer at python.org
Tue Nov 30 06:01:55 EST 2021


https://github.com/python/cpython/commit/f97ec09baf8431494fd2ef5133090c7b0afd0551
commit: f97ec09baf8431494fd2ef5133090c7b0afd0551
branch: main
author: Vishal Pandey <vishalpandeyviptsk at gmail.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2021-11-30T11:01:44Z
summary:

bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (GH-29801)

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