[Python-checkins] bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold (GH-13147)

Miss Islington (bot) webhook-mailer at python.org
Tue May 7 11:17:53 EDT 2019


https://github.com/python/cpython/commit/146010ea42fb949a48a1b79a13503995a5176833
commit: 146010ea42fb949a48a1b79a13503995a5176833
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-05-07T08:17:50-07:00
summary:

bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold (GH-13147)

(cherry picked from commit 5765ecf79fcee987f2f97c246c64b494324dfd33)

Co-authored-by: Edison A <20975616+SimiCode at users.noreply.github.com>

files:
A Misc/NEWS.d/next/Documentation/2019-05-07-02-30-51.bpo-36783.gpC8E2.rst
M Doc/c-api/datetime.rst

diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst
index 78724619ea3c..b7949e235005 100644
--- a/Doc/c-api/datetime.rst
+++ b/Doc/c-api/datetime.rst
@@ -98,6 +98,22 @@ Macros to create objects:
    minute, second and microsecond.
 
 
+.. c:function:: PyObject* PyDateTime_FromDateAndTimeAndFold(int year, int month, int day, int hour, int minute, int second, int usecond, int fold)
+
+   Return a :class:`datetime.datetime` object with the specified year, month, day, hour,
+   minute, second, microsecond and fold.
+
+   .. versionadded:: 3.6
+
+
+.. c:function:: PyObject* PyTime_FromTimeAndFold(int hour, int minute, int second, int usecond, int fold)
+
+   Return a :class:`datetime.time` object with the specified hour, minute, second,
+   microsecond and fold.
+
+   .. versionadded:: 3.6
+
+
 .. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)
 
    Return a :class:`datetime.time` object with the specified hour, minute, second and
diff --git a/Misc/NEWS.d/next/Documentation/2019-05-07-02-30-51.bpo-36783.gpC8E2.rst b/Misc/NEWS.d/next/Documentation/2019-05-07-02-30-51.bpo-36783.gpC8E2.rst
new file mode 100644
index 000000000000..d3cbf4f6e13e
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2019-05-07-02-30-51.bpo-36783.gpC8E2.rst
@@ -0,0 +1,2 @@
+Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold as per PEP 495.
+Patch by Edison Abahurire.
\ No newline at end of file



More information about the Python-checkins mailing list