Skip to content

Commit 8d98893

Browse files
Remove links in titles
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 798fcef commit 8d98893

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Doc/library/datetime.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ objects.
204204

205205
.. _datetime-timedelta:
206206

207-
:class:`timedelta` objects
208-
--------------------------
207+
:class:`!timedelta` objects
208+
---------------------------
209209

210210
A :class:`timedelta` object represents a duration, the difference between two
211211
:class:`.datetime` or :class:`date` instances.
@@ -459,8 +459,8 @@ Instance methods:
459459
.. versionadded:: 3.2
460460

461461

462-
Examples of usage: :class:`timedelta`
463-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
462+
Examples of usage: :class:`!timedelta`
463+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
464464

465465
An additional example of normalization::
466466

@@ -493,8 +493,8 @@ Examples of :class:`timedelta` arithmetic::
493493

494494
.. _datetime-date:
495495

496-
:class:`date` objects
497-
---------------------
496+
:class:`!date` objects
497+
----------------------
498498

499499
A :class:`date` object represents a date (year, month and day) in an idealized
500500
calendar, the current Gregorian calendar indefinitely extended in both
@@ -847,8 +847,8 @@ Instance methods:
847847
See also :ref:`strftime-strptime-behavior` and :meth:`date.isoformat`.
848848

849849

850-
Examples of usage: :class:`date`
851-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
850+
Examples of usage: :class:`!date`
851+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
852852

853853
Example of counting days to an event::
854854

@@ -917,7 +917,7 @@ More examples of working with :class:`date`:
917917

918918
.. _datetime-datetime:
919919

920-
:class:`.datetime` objects
920+
:class:`!datetime` objects
921921
--------------------------
922922

923923
A :class:`.datetime` object is a single object containing all the information
@@ -1696,7 +1696,7 @@ Instance methods:
16961696
See also :ref:`strftime-strptime-behavior` and :meth:`datetime.isoformat`.
16971697

16981698

1699-
Examples of usage: :class:`.datetime`
1699+
Examples of usage: :class:`!datetime`
17001700
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17011701

17021702
Examples of working with :class:`.datetime` objects:
@@ -1825,7 +1825,7 @@ Usage of ``KabulTz`` from above::
18251825

18261826
.. _datetime-time:
18271827

1828-
:class:`.time` objects
1828+
:class:`!time` objects
18291829
----------------------
18301830

18311831
A :class:`.time` object represents a (local) time of day, independent of any particular
@@ -2099,7 +2099,7 @@ Instance methods:
20992099
return ``None`` or a string object.
21002100

21012101

2102-
Examples of usage: :class:`.time`
2102+
Examples of usage: :class:`!time`
21032103
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21042104

21052105
Examples of working with a :class:`.time` object::
@@ -2132,8 +2132,8 @@ Examples of working with a :class:`.time` object::
21322132

21332133
.. _datetime-tzinfo:
21342134

2135-
:class:`tzinfo` objects
2136-
-----------------------
2135+
:class:`!tzinfo` objects
2136+
------------------------
21372137

21382138
.. class:: tzinfo()
21392139

@@ -2408,8 +2408,8 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
24082408

24092409
.. _datetime-timezone:
24102410

2411-
:class:`timezone` objects
2412-
-------------------------
2411+
:class:`!timezone` objects
2412+
--------------------------
24132413

24142414
The :class:`timezone` class is a subclass of :class:`tzinfo`, each
24152415
instance of which represents a time zone defined by a fixed offset from
@@ -2487,8 +2487,8 @@ Class attributes:
24872487

24882488
.. _strftime-strptime-behavior:
24892489

2490-
:meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` behavior
2491-
--------------------------------------------------------------------
2490+
:meth:`!strftime` and :meth:`!strptime` behavior
2491+
------------------------------------------------
24922492

24932493
:class:`date`, :class:`.datetime`, and :class:`.time` objects all support a
24942494
``strftime(format)`` method, to create a string representing the time under the
@@ -2514,8 +2514,8 @@ versus :meth:`~.datetime.strptime`:
25142514

25152515
.. _format-codes:
25162516

2517-
:meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` format codes
2518-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2517+
:meth:`!strftime` and :meth:`!strptime` format codes
2518+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25192519

25202520
These methods accept format codes that can be used to parse and format dates::
25212521

0 commit comments

Comments
 (0)