Skip to content

Commit 74768c3

Browse files
committed
Sentence case for headers
1 parent 1ab9295 commit 74768c3

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Doc/library/datetime.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ on efficient attribute extraction for output formatting and manipulation.
4444

4545
.. _datetime-naive-aware:
4646

47-
Aware and Naive Objects
47+
Aware and naive objects
4848
-----------------------
4949

5050
Date and time objects may be categorized as "aware" or "naive" depending on
@@ -99,7 +99,7 @@ The :mod:`!datetime` module exports the following constants:
9999

100100
.. versionadded:: 3.11
101101

102-
Available Types
102+
Available types
103103
---------------
104104

105105
.. class:: date
@@ -162,7 +162,7 @@ Subclass relationships::
162162
date
163163
datetime
164164

165-
Common Properties
165+
Common properties
166166
^^^^^^^^^^^^^^^^^
167167

168168
The :class:`date`, :class:`.datetime`, :class:`.time`, and :class:`timezone` types
@@ -173,7 +173,7 @@ share these common features:
173173
dictionary keys.
174174
- Objects of these types support efficient pickling via the :mod:`pickle` module.
175175

176-
Determining if an Object is Aware or Naive
176+
Determining if an object is aware or naive
177177
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178178

179179
Objects of the :class:`date` type are always naive.
@@ -199,7 +199,7 @@ objects.
199199

200200
.. _datetime-timedelta:
201201

202-
:class:`timedelta` Objects
202+
:class:`timedelta` objects
203203
--------------------------
204204

205205
A :class:`timedelta` object represents a duration, the difference between two
@@ -487,7 +487,7 @@ Examples of :class:`timedelta` arithmetic::
487487

488488
.. _datetime-date:
489489

490-
:class:`date` Objects
490+
:class:`date` objects
491491
---------------------
492492

493493
A :class:`date` object represents a date (year, month and day) in an idealized
@@ -835,7 +835,7 @@ Instance methods:
835835
literals <f-strings>` and when using :meth:`str.format`.
836836
See also :ref:`strftime-strptime-behavior` and :meth:`date.isoformat`.
837837

838-
Examples of Usage: :class:`date`
838+
Examples of usage: :class:`date`
839839
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
840840

841841
Example of counting days to an event::
@@ -905,7 +905,7 @@ More examples of working with :class:`date`:
905905

906906
.. _datetime-datetime:
907907

908-
:class:`.datetime` Objects
908+
:class:`.datetime` objects
909909
--------------------------
910910

911911
A :class:`.datetime` object is a single object containing all the information
@@ -1675,7 +1675,7 @@ Instance methods:
16751675
See also :ref:`strftime-strptime-behavior` and :meth:`datetime.isoformat`.
16761676

16771677

1678-
Examples of Usage: :class:`.datetime`
1678+
Examples of usage: :class:`.datetime`
16791679
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16801680

16811681
Examples of working with :class:`.datetime` objects:
@@ -1803,7 +1803,7 @@ Usage of ``KabulTz`` from above::
18031803

18041804
.. _datetime-time:
18051805

1806-
:class:`.time` Objects
1806+
:class:`.time` objects
18071807
----------------------
18081808

18091809
A :class:`.time` object represents a (local) time of day, independent of any particular
@@ -2072,7 +2072,7 @@ Instance methods:
20722072
``self.tzinfo.tzname(None)``, or raises an exception if the latter doesn't
20732073
return ``None`` or a string object.
20742074

2075-
Examples of Usage: :class:`.time`
2075+
Examples of usage: :class:`.time`
20762076
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20772077

20782078
Examples of working with a :class:`.time` object::
@@ -2105,7 +2105,7 @@ Examples of working with a :class:`.time` object::
21052105

21062106
.. _datetime-tzinfo:
21072107

2108-
:class:`tzinfo` Objects
2108+
:class:`tzinfo` objects
21092109
-----------------------
21102110

21112111
.. class:: tzinfo()
@@ -2381,7 +2381,7 @@ only EST (fixed offset -5 hours), or only EDT (fixed offset -4 hours)).
23812381

23822382
.. _datetime-timezone:
23832383

2384-
:class:`timezone` Objects
2384+
:class:`timezone` objects
23852385
-------------------------
23862386

23872387
The :class:`timezone` class is a subclass of :class:`tzinfo`, each
@@ -2457,7 +2457,7 @@ Class attributes:
24572457

24582458
.. _strftime-strptime-behavior:
24592459

2460-
:meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` Behavior
2460+
:meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` behavior
24612461
--------------------------------------------------------------------
24622462

24632463
:class:`date`, :class:`.datetime`, and :class:`.time` objects all support a
@@ -2484,7 +2484,7 @@ versus :meth:`~.datetime.strptime`:
24842484

24852485
.. _format-codes:
24862486

2487-
:meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` Format Codes
2487+
:meth:`~.datetime.strftime` and :meth:`~.datetime.strptime` Format codes
24882488
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24892489

24902490
These methods accept format codes that can be used to parse and format dates::
@@ -2644,7 +2644,7 @@ differences between platforms in handling of unsupported format specifiers.
26442644
.. versionadded:: 3.15
26452645
``%:z`` was added for :meth:`~.datetime.strptime`
26462646

2647-
Technical Detail
2647+
Technical detail
26482648
^^^^^^^^^^^^^^^^
26492649

26502650
Broadly speaking, ``d.strftime(fmt)`` acts like the :mod:`time` module's

0 commit comments

Comments
 (0)