Skip to content

Commit 7b87765

Browse files
authored
[3.9] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94835)
(cherry picked from commit 07374cc) Co-authored-by: Dong-hee Na <[email protected]>
1 parent 017080f commit 7b87765

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Doc/c-api/datetime.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ must not be ``NULL``, and the type is not checked:
191191
Return the microsecond, as an int from 0 through 999999.
192192
193193
194+
.. c:function:: int PyDateTime_DATE_GET_FOLD(PyDateTime_DateTime *o)
195+
196+
Return the fold, as an int from 0 through 1.
197+
198+
.. versionadded:: 3.6
199+
200+
194201
Macros to extract fields from time objects. The argument must be an instance of
195202
:c:data:`PyDateTime_Time`, including subclasses. The argument must not be ``NULL``,
196203
and the type is not checked:
@@ -215,6 +222,13 @@ and the type is not checked:
215222
Return the microsecond, as an int from 0 through 999999.
216223
217224
225+
.. c:function:: int PyDateTime_TIME_GET_FOLD(PyDateTime_Time *o)
226+
227+
Return the fold, as an int from 0 through 1.
228+
229+
.. versionadded:: 3.6
230+
231+
218232
Macros to extract fields from time delta objects. The argument must be an
219233
instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument must
220234
not be ``NULL``, and the type is not checked:

0 commit comments

Comments
 (0)