summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-08-22 20:06:53 (GMT)
committerGitHub <noreply@github.com>2023-08-22 20:06:53 (GMT)
commit92cbe739d42acde858e27d9c06524312dda7534e (patch)
treec50183f4663968f814d48ff4b9fb2115c659cebe
parentb539dd3073f9e37de25f73ad19d188cd56cc19b4 (diff)
downloadcpython-92cbe739d42acde858e27d9c06524312dda7534e.zip
cpython-92cbe739d42acde858e27d9c06524312dda7534e.tar.gz
cpython-92cbe739d42acde858e27d9c06524312dda7534e.tar.bz2
[3.12] Docs: Add link to skip to datetime's format codes (GH-108027) (#108329)
Docs: Add link to skip to datetime's format codes (GH-108027) (cherry picked from commit 35cb1605d08a77f1c18bd476b26391acaaa35599) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^