summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2022-07-29 04:30:13 +0900
committerGitHub <noreply@github.com>2022-07-28 15:30:13 -0400
commit4f100fe9f1c691145e3fa959ef324646e303cdf3 (patch)
treedb01a8d110feffc7da1d4f922f01bc4e93d5b223
parent48b323ed847ce0cb1a13e31d93781ca48e71f1ae (diff)
downloadcpython-git-4f100fe9f1c691145e3fa959ef324646e303cdf3.tar.gz
[3.8] gh-90359: Update documentation to follow PEP 495. (gh-94800). (GH-94834)
(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64) Co-authored-by: Dong-hee Na <donghee.na@python.org>
-rw-r--r--Doc/c-api/datetime.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst
index bd4f1ff446..84e05ea631 100644
--- a/Doc/c-api/datetime.rst
+++ b/Doc/c-api/datetime.rst
@@ -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: