pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/967da5febbc77b36a5b14863e61db3a2d441a940

aa60c69660fa.css" /> gh-90359: Unify documentation style for datetime.rst (gh-94836) · python/cpython@967da5f · GitHub
Skip to content

Commit 967da5f

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

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy