]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-90359: Update documentation to follow PEP 495. (gh-94800)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Jul 2022 00:16:44 +0000 (17:16 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Jul 2022 00:16:44 +0000 (17:16 -0700)
(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Doc/c-api/datetime.rst

index 4c4e4bcfa63335ae217b8a6a908f0af6667b571e..d650f5569d238b5ce88680a10fadc253c6d7ad5c 100644 (file)
@@ -190,6 +190,12 @@ must not be ``NULL``, and the type is not checked:
 
    Return the microsecond, as an int from 0 through 999999.
 
+.. c:function:: int PyDateTime_DATE_GET_FOLD(PyDateTime_DateTime *o)
+
+   Return the fold, as an int from 0 through 1.
+
+   .. versionadded:: 3.6
+
 .. c:function:: PyObject* PyDateTime_DATE_GET_TZINFO(PyDateTime_DateTime *o)
 
    Return the tzinfo (which may be ``None``).
@@ -219,6 +225,12 @@ and the type is not checked:
 
    Return the microsecond, as an int from 0 through 999999.
 
+.. c:function:: int PyDateTime_TIME_GET_FOLD(PyDateTime_Time *o)
+
+   Return the fold, as an int from 0 through 1.
+
+   .. versionadded:: 3.6
+
 .. c:function:: PyObject* PyDateTime_TIME_GET_TZINFO(PyDateTime_Time *o)
 
    Return the tzinfo (which may be ``None``).