diff options
author | RUANG (James Roy) <longjinyii@outlook.com> | 2024-10-28 21:53:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 21:53:18 (GMT) |
commit | 85799f1ffd5f285ef93a608b0aaf6acbb464ff9d (patch) | |
tree | 0b845fb1b27b266869c42a0168ababc9b6349390 /Doc/library | |
parent | 00ea179879726ae221ac7084bdc14752c45ff558 (diff) | |
download | cpython-85799f1ffd5f285ef93a608b0aaf6acbb464ff9d.zip cpython-85799f1ffd5f285ef93a608b0aaf6acbb464ff9d.tar.gz cpython-85799f1ffd5f285ef93a608b0aaf6acbb464ff9d.tar.bz2 |
gh-89762: Document strftime %G, %V, and %u format specifiers (#124572)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/time.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst index a0bf13f..8e29e57 100644 --- a/Doc/library/time.rst +++ b/Doc/library/time.rst @@ -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. | | +-----------+------------------------------------------------+-------+ |