summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-14 00:16:09 (GMT)
committerGitHub <noreply@github.com>2022-07-14 00:16:09 (GMT)
commitc473627c73b70ef587ca2195fdb8ee721d9a7ba8 (patch)
treec5bb1d268196f27610f68c556bc93082794e036c /Doc/c-api
parent11cdde85c3153f4cef382500d74b4155a0e784a0 (diff)
downloadcpython-c473627c73b70ef587ca2195fdb8ee721d9a7ba8.zip
cpython-c473627c73b70ef587ca2195fdb8ee721d9a7ba8.tar.gz
cpython-c473627c73b70ef587ca2195fdb8ee721d9a7ba8.tar.bz2
gh-90359: Update documentation to follow PEP 495. (gh-94800)
(cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64) Co-authored-by: Dong-hee Na <donghee.na@python.org>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/datetime.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst
index 4c4e4bc..d650f55 100644
--- a/Doc/c-api/datetime.rst
+++ b/Doc/c-api/datetime.rst
@@ -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``).