Skip to content

Commit

Permalink
pythongh-89762: Document strftime %G, %V, and %u format specifiers (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
rruuaanng authored Oct 28, 2024
1 parent 00ea179 commit 85799f1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Doc/library/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ Functions
| | | |
| | | |
+-----------+------------------------------------------------+-------+
| ``%u`` | Day of the week (Monday is 1; Sunday is 7) | |
| | as a decimal number [1, 7]. | |
+-----------+------------------------------------------------+-------+
| ``%w`` | Weekday as a decimal number [0(Sunday),6]. | |
| | | |
+-----------+------------------------------------------------+-------+
Expand Down Expand Up @@ -515,6 +518,16 @@ Functions
| ``%Z`` | Time zone name (no characters if no time zone | |
| | exists). Deprecated. [1]_ | |
+-----------+------------------------------------------------+-------+
| ``%G`` | ISO 8601 year (similar to ``%Y`` but follows | |
| | the rules for the ISO 8601 calendar year). | |
| | The year starts with the week that contains | |
| | the first Thursday of the calendar year. | |
+-----------+------------------------------------------------+-------+
| ``%V`` | ISO 8601 week number (as a decimal number | |
| | [01,53]). The first week of the year is the | |
| | one that contains the first Thursday of the | |
| | year. Weeks start on Monday. | |
+-----------+------------------------------------------------+-------+
| ``%%`` | A literal ``'%'`` character. | |
+-----------+------------------------------------------------+-------+

Expand Down

0 comments on commit 85799f1

Please sign in to comment.