@@ -476,10 +476,10 @@ Functions
476
476
| | negative time difference from UTC/GMT of the | |
477
477
| | form +HHMM or -HHMM, where H represents decimal| |
478
478
| | hour digits and M represents decimal minute | |
479
- | | digits [-23:59, +23:59]. | |
479
+ | | digits [-23:59, +23:59]. [ 1 ]_ | |
480
480
+-----------+------------------------------------------------+-------+
481
481
| ``%Z `` | Time zone name (no characters if no time zone | |
482
- | | exists). | |
482
+ | | exists). Deprecated. [ 1 ]_ | |
483
483
+-----------+------------------------------------------------+-------+
484
484
| ``%% `` | A literal ``'%' `` character. | |
485
485
+-----------+------------------------------------------------+-------+
@@ -500,7 +500,7 @@ Functions
500
500
calculations when the day of the week and the year are specified.
501
501
502
502
Here is an example, a format for dates compatible with that specified in the
503
- :rfc: `2822 ` Internet email standard. [# ]_ ::
503
+ :rfc: `2822 ` Internet email standard. [1 ]_ ::
504
504
505
505
>>> from time import gmtime, strftime
506
506
>>> strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())
@@ -928,10 +928,9 @@ Timezone Constants
928
928
929
929
.. rubric :: Footnotes
930
930
931
- .. [# ] The use of ``%Z `` is now deprecated, but the ``%z `` escape that expands to the
932
- preferred hour/minute offset is not supported by all ANSI C libraries. Also, a
931
+ .. [1 ] The use of ``%Z `` is now deprecated, but the ``%z `` escape that expands to the
932
+ preferred hour/minute offset is not supported by all ANSI C libraries. Also, a
933
933
strict reading of the original 1982 :rfc: `822 ` standard calls for a two-digit
934
- year (%y rather than %Y ), but practice moved to 4-digit years long before the
934
+ year (`` %y `` rather than `` %Y `` ), but practice moved to 4-digit years long before the
935
935
year 2000. After that, :rfc: `822 ` became obsolete and the 4-digit year has
936
936
been first recommended by :rfc: `1123 ` and then mandated by :rfc: `2822 `.
937
-
0 commit comments