Skip to content

Commit d0852c4

Browse files
Update documentation in datetime module strftime-and-strptime-behavior fix typo in '%W' format code description (GH-30232) (GH-30703)
A small change to the documentation of datetime module , in the format codes section of stftime and strptime. Changed the description of format code '%W' from 'as a decimal number' to 'a zero padded decimal number' so it's in line with the example having leading zeros. Similar to the format code '%U' above. Automerge-Triggered-By: GH:pganssle (cherry picked from commit d45cd2d) Co-authored-by: Evan <[email protected]> Co-authored-by: Evan <[email protected]>
1 parent d807bf2 commit d0852c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/datetime.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,18 +2375,18 @@ requires, and these work on all platforms with a standard C implementation.
23752375
+-----------+--------------------------------+------------------------+-------+
23762376
| ``%U`` | Week number of the year | 00, 01, ..., 53 | \(7), |
23772377
| | (Sunday as the first day of | | \(9) |
2378-
| | the week) as a zero padded | | |
2378+
| | the week) as a zero-padded | | |
23792379
| | decimal number. All days in a | | |
23802380
| | new year preceding the first | | |
23812381
| | Sunday are considered to be in | | |
23822382
| | week 0. | | |
23832383
+-----------+--------------------------------+------------------------+-------+
23842384
| ``%W`` | Week number of the year | 00, 01, ..., 53 | \(7), |
23852385
| | (Monday as the first day of | | \(9) |
2386-
| | the week) as a decimal number. | | |
2387-
| | All days in a new year | | |
2388-
| | preceding the first Monday | | |
2389-
| | are considered to be in | | |
2386+
| | the week) as a zero-padded | | |
2387+
| | decimal number. All days in a | | |
2388+
| | new year preceding the first | | |
2389+
| | Monday are considered to be in | | |
23902390
| | week 0. | | |
23912391
+-----------+--------------------------------+------------------------+-------+
23922392
| ``%c`` | Locale's appropriate date and || Tue Aug 16 21:30:00 | \(1) |

0 commit comments

Comments
 (0)