Skip to content

Commit 967da5f

Browse files
authored
gh-90359: Unify documentation style for datetime.rst (gh-94836)
1 parent 07374cc commit 967da5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/c-api/datetime.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,15 @@ Macros to create objects:
132132
resulting number of microseconds and seconds lie in the ranges documented for
133133
:class:`datetime.timedelta` objects.
134134
135+
135136
.. c:function:: PyObject* PyTimeZone_FromOffset(PyDateTime_DeltaType* offset)
136137
137138
Return a :class:`datetime.timezone` object with an unnamed fixed offset
138139
represented by the *offset* argument.
139140
140141
.. versionadded:: 3.7
141142
143+
142144
.. c:function:: PyObject* PyTimeZone_FromOffsetAndName(PyDateTime_DeltaType* offset, PyUnicode* name)
143145
144146
Return a :class:`datetime.timezone` object with a fixed offset represented
@@ -190,18 +192,21 @@ must not be ``NULL``, and the type is not checked:
190192
191193
Return the microsecond, as an int from 0 through 999999.
192194
195+
193196
.. c:function:: int PyDateTime_DATE_GET_FOLD(PyDateTime_DateTime *o)
194197
195198
Return the fold, as an int from 0 through 1.
196199
197200
.. versionadded:: 3.6
198201
202+
199203
.. c:function:: PyObject* PyDateTime_DATE_GET_TZINFO(PyDateTime_DateTime *o)
200204
201205
Return the tzinfo (which may be ``None``).
202206
203207
.. versionadded:: 3.10
204208
209+
205210
Macros to extract fields from time objects. The argument must be an instance of
206211
:c:data:`PyDateTime_Time`, including subclasses. The argument must not be ``NULL``,
207212
and the type is not checked:
@@ -225,12 +230,14 @@ and the type is not checked:
225230
226231
Return the microsecond, as an int from 0 through 999999.
227232
233+
228234
.. c:function:: int PyDateTime_TIME_GET_FOLD(PyDateTime_Time *o)
229235
230236
Return the fold, as an int from 0 through 1.
231237
232238
.. versionadded:: 3.6
233239
240+
234241
.. c:function:: PyObject* PyDateTime_TIME_GET_TZINFO(PyDateTime_Time *o)
235242
236243
Return the tzinfo (which may be ``None``).

0 commit comments

Comments
 (0)