Skip to content

Commit 4f100fe

Browse files
authored
[3.8] gh-90359: Update documentation to follow PEP 495. (gh-94800). (GH-94834)
(cherry picked from commit 07374cc) Co-authored-by: Dong-hee Na <[email protected]>
1 parent 48b323e commit 4f100fe

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
@@ -186,6 +186,13 @@ must not be ``NULL``, and the type is not checked:
186186
Return the microsecond, as an int from 0 through 999999.
187187
188188
189+
.. c:function:: int PyDateTime_DATE_GET_FOLD(PyDateTime_DateTime *o)
190+
191+
Return the fold, as an int from 0 through 1.
192+
193+
.. versionadded:: 3.6
194+
195+
189196
Macros to extract fields from time objects. The argument must be an instance of
190197
:c:data:`PyDateTime_Time`, including subclasses. The argument must not be ``NULL``,
191198
and the type is not checked:
@@ -210,6 +217,13 @@ and the type is not checked:
210217
Return the microsecond, as an int from 0 through 999999.
211218
212219
220+
.. c:function:: int PyDateTime_TIME_GET_FOLD(PyDateTime_Time *o)
221+
222+
Return the fold, as an int from 0 through 1.
223+
224+
.. versionadded:: 3.6
225+
226+
213227
Macros to extract fields from time delta objects. The argument must be an
214228
instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument must
215229
not be ``NULL``, and the type is not checked:

0 commit comments

Comments
 (0)