From 46fe36f1f2af226f1889d73477b0b70626e28f81 Mon Sep 17 00:00:00 2001 From: SimiCode Date: Tue, 7 May 2019 05:14:21 +0300 Subject: [PATCH 1/4] Added C API documentation for PyDateTime_FromDateAndTimeAndFold as per PEP 495 --- Doc/c-api/datetime.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst index 78724619ea3c52..cbe917790eeda7 100644 --- a/Doc/c-api/datetime.rst +++ b/Doc/c-api/datetime.rst @@ -98,6 +98,14 @@ 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_FromTime(int hour, int minute, int second, int usecond) Return a :class:`datetime.time` object with the specified hour, minute, second and From c8ee35d7d1a1ae9cd011e9e5c42d828a0008450a Mon Sep 17 00:00:00 2001 From: SimiCode Date: Tue, 7 May 2019 05:19:47 +0300 Subject: [PATCH 2/4] Added C API documentation for PyTime_FromTimeAndFold as per PEP 495 --- Doc/c-api/datetime.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst index cbe917790eeda7..e130dfdf21a85b 100644 --- a/Doc/c-api/datetime.rst +++ b/Doc/c-api/datetime.rst @@ -106,6 +106,14 @@ Macros to create objects: .. 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 From 6eba4a4fc3a04b71800def2affef03015b653d6f Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" Date: Tue, 7 May 2019 02:30:52 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Documentation/2019-05-07-02-30-51.bpo-36783.gpC8E2.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2019-05-07-02-30-51.bpo-36783.gpC8E2.rst 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 00000000000000..d3cbf4f6e13e88 --- /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 From fb9713b55595075a789f4175112f24950f33d457 Mon Sep 17 00:00:00 2001 From: SimiCode Date: Tue, 7 May 2019 06:22:56 +0300 Subject: [PATCH 4/4] remove trailing white-space --- Doc/c-api/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/datetime.rst b/Doc/c-api/datetime.rst index e130dfdf21a85b..b7949e235005c8 100644 --- a/Doc/c-api/datetime.rst +++ b/Doc/c-api/datetime.rst @@ -108,7 +108,7 @@ Macros to create objects: .. 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, + Return a :class:`datetime.time` object with the specified hour, minute, second, microsecond and fold. .. versionadded:: 3.6