]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: Add link to skip to datetime's format codes (GH-108027) (#108330)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 22 Aug 2023 19:52:51 +0000 (12:52 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 19:52:51 +0000 (13:52 -0600)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/library/datetime.rst

index 9711f944e90dc3fb24ff85f077f4b903fffb7194..d7b0401b7feef8fa060f54990a460e0fc12d471c 100644 (file)
@@ -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`
@@ -2314,6 +2318,8 @@ versus :meth:`strptime`:
 +----------------+--------------------------------------------------------+------------------------------------------------------------------------------+
 
 
+   .. _format-codes:
+
 :meth:`strftime` and :meth:`strptime` Format Codes
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^