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

ambv webhook-mailer at python.org
Tue Aug 22 14:38:42 EDT 2023


https://github.com/python/cpython/commit/35cb1605d08a77f1c18bd476b26391acaaa35599
commit: 35cb1605d08a77f1c18bd476b26391acaaa35599
branch: main
author: Hugo van Kemenade <hugovk at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2023-08-22T20:38:38+02:00
summary:

Docs: Add link to skip to datetime's format codes (#108027)

files:
M Doc/library/datetime.rst

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index bed19ad145a20..400c369a9bb73 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
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 



More information about the Python-checkins mailing list