[Python-checkins] [3.11] Docs: Add link to skip to datetime's format codes (GH-108027) (#108330)

hugovk webhook-mailer at python.org
Tue Aug 22 15:52:54 EDT 2023


https://github.com/python/cpython/commit/12cad6155bb1291b4b6c111ef480bbc0e6a68941
commit: 12cad6155bb1291b4b6c111ef480bbc0e6a68941
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2023-08-22T13:52:51-06:00
summary:

[3.11] Docs: Add link to skip to datetime's format codes (GH-108027) (#108330)

Co-authored-by: Hugo van Kemenade <hugovk at users.noreply.github.com>

files:
M Doc/library/datetime.rst

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 9711f944e90dc..d7b0401b7feef 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`
@@ -2314,6 +2318,8 @@ versus :meth:`strptime`:
 +----------------+--------------------------------------------------------+------------------------------------------------------------------------------+
 
 
+   .. _format-codes:
+
 :meth:`strftime` and :meth:`strptime` Format Codes
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 



More information about the Python-checkins mailing list