Skip to content

Commit f84a75c

Browse files
committed
Add %G and %V document
1 parent 782217f commit f84a75c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Doc/library/time.rst

Lines changed: 14 additions & 0 deletions
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,17 @@ 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 ISO year starts with the week that | |
524+
| | contains the first Thursday of the calendar | |
525+
| | year. | |
526+
+-----------+------------------------------------------------+-------+
527+
| ``%V`` | ISO 8601 week number (as a decimal number | |
528+
| | [01,53]). The first week of the year is the | |
529+
| | one that contains the first Thursday of the | |
530+
| | year. Weeks start on Monday. | |
531+
+-----------+------------------------------------------------+-------+
518532
| ``%%`` | A literal ``'%'`` character. | |
519533
+-----------+------------------------------------------------+-------+
520534

0 commit comments

Comments
 (0)