]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: Add link to skip to datetime's format codes (#108027)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Tue, 22 Aug 2023 18:38:38 +0000 (21:38 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 18:38:38 +0000 (20:38 +0200)
Doc/library/datetime.rst

index bed19ad145a20c5100863896cb8e1b003d042154..400c369a9bb736dd750a51b9a21c7c594aa1c4de 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`
@@ -2322,6 +2326,8 @@ versus :meth:`strptime`:
 +----------------+--------------------------------------------------------+------------------------------------------------------------------------------+
 
 
+   .. _format-codes:
+
 :meth:`strftime` and :meth:`strptime` Format Codes
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^