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

(cherry picked from commit 85799f1ffd)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
This commit is contained in:
Miss Islington (bot) 2024-10-28 22:59:41 +01:00 committed by GitHub
parent ccf040896e
commit 672b915ff9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -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]. | |
| | | |
+-----------+------------------------------------------------+-------+
@ -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. | |
+-----------+------------------------------------------------+-------+