]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] gh-90359: Update documentation to follow PEP 495. (gh-94800). (gh-94833)
authorDong-hee Na <donghee.na@python.org>
Thu, 14 Jul 2022 19:33:14 +0000 (04:33 +0900)
committerGitHub <noreply@github.com>
Thu, 14 Jul 2022 19:33:14 +0000 (15:33 -0400)
(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64)

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

index 55de81665e04bb06e880f3120e86aef5208aa0b3..cb3267e3f82425d723ec70778b4015a666645a74 100644 (file)
@@ -186,6 +186,13 @@ 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
+
+
 Macros to extract fields from time objects.  The argument must be an instance of
 :c:data:`PyDateTime_Time`, including subclasses. The argument must not be ``NULL``,
 and the type is not checked:
@@ -210,6 +217,13 @@ 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
+
+
 Macros to extract fields from time delta objects.  The argument must be an
 instance of :c:data:`PyDateTime_Delta`, including subclasses. The argument must
 not be ``NULL``, and the type is not checked: