]> granicus.if.org Git - python/commitdiff
bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDate...
authorEdison A <20975616+SimiCode@users.noreply.github.com>
Tue, 7 May 2019 15:00:21 +0000 (08:00 -0700)
committerCheryl Sabella <cheryl.sabella@gmail.com>
Tue, 7 May 2019 15:00:21 +0000 (11:00 -0400)
Doc/c-api/datetime.rst
Misc/NEWS.d/next/Documentation/2019-05-07-02-30-51.bpo-36783.gpC8E2.rst [new file with mode: 0644]

index 78724619ea3c52267d36ac6d8740be4bb983bb89..b7949e235005c83310856ab1cb7af3764bffa4c4 100644 (file)
@@ -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 (file)
index 0000000..d3cbf4f
--- /dev/null
@@ -0,0 +1,2 @@
+Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold as per PEP 495.\r
+Patch by Edison Abahurire.
\ No newline at end of file