Skip to content

Commit 85799f1

Browse files
authored
gh-89762: Document strftime %G, %V, and %u format specifiers (#124572)
1 parent 00ea179 commit 85799f1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Doc/library/time.rst

+13
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ Functions
483483
| | | |
484484
| | | |
485485
+-----------+------------------------------------------------+-------+
486+
| ``%u`` | Day of the week (Monday is 1; Sunday is 7) | |
487+
| | as a decimal number [1, 7]. | |
488+
+-----------+------------------------------------------------+-------+
486489
| ``%w`` | Weekday as a decimal number [0(Sunday),6]. | |
487490
| | | |
488491
+-----------+------------------------------------------------+-------+
@@ -515,6 +518,16 @@ Functions
515518
| ``%Z`` | Time zone name (no characters if no time zone | |
516519
| | exists). Deprecated. [1]_ | |
517520
+-----------+------------------------------------------------+-------+
521+
| ``%G`` | ISO 8601 year (similar to ``%Y`` but follows | |
522+
| | the rules for the ISO 8601 calendar year). | |
523+
| | The year starts with the week that contains | |
524+
| | the first Thursday of the calendar year. | |
525+
+-----------+------------------------------------------------+-------+
526+
| ``%V`` | ISO 8601 week number (as a decimal number | |
527+
| | [01,53]). The first week of the year is the | |
528+
| | one that contains the first Thursday of the | |
529+
| | year. Weeks start on Monday. | |
530+
+-----------+------------------------------------------------+-------+
518531
| ``%%`` | A literal ``'%'`` character. | |
519532
+-----------+------------------------------------------------+-------+
520533

0 commit comments

Comments
 (0)