Skip to content

[3.12] gh-89762: Document strftime %G, %V, and %u format specifiers (GH-124572) #126095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Doc/library/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,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 @@ -492,6 +495,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
Loading