summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-08-22 18:38:38 (GMT)
committerGitHub <noreply@github.com>2023-08-22 18:38:38 (GMT)
commit35cb1605d08a77f1c18bd476b26391acaaa35599 (patch)
tree293c98dbb661765f9d9c14f76bd49c77ce3481ef
parent21dda09600848ac280481f7c64f8d9516dc69bb2 (diff)
downloadcpython-35cb1605d08a77f1c18bd476b26391acaaa35599.zip
cpython-35cb1605d08a77f1c18bd476b26391acaaa35599.tar.gz
cpython-35cb1605d08a77f1c18bd476b26391acaaa35599.tar.bz2
Docs: Add link to skip to datetime's format codes (#108027)
-rw-r--r--Doc/library/datetime.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index bed19ad..400c369 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -19,6 +19,10 @@ The :mod:`datetime` module supplies classes for manipulating dates and times.
While date and time arithmetic is supported, the focus of the implementation is
on efficient attribute extraction for output formatting and manipulation.
+.. tip::
+
+ Skip to :ref:`the format codes <format-codes>`.
+
.. seealso::
Module :mod:`calendar`
@@ -2322,6 +2326,8 @@ versus :meth:`strptime`:
+----------------+--------------------------------------------------------+------------------------------------------------------------------------------+
+ .. _format-codes:
+
:meth:`strftime` and :meth:`strptime` Format Codes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^