8000 bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyD… · python/cpython@146010e · GitHub
[go: up one dir, main page]

Skip to content

Commit 146010e

Browse files
bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold (GH-13147)
(cherry picked from commit 5765ecf) Co-authored-by: Edison A <20975616+SimiCode@users.noreply.github.com>
1 parent a6516f8 commit 146010e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Doc/c-api/datetime.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,22 @@ Macros to create objects:
9898
minute, second and microsecond.
9999
100100
101+
.. c:function:: PyObject* PyDateTime_FromDateAndTimeAndFold(int year, int month, int day, int hour, int minute, int second, int usecond, int fold)
102+
103+
Return a :class:`datetime.datetime` object with the specified year, month, day, hour,
104+
minute, second, microsecond and fold.
105+
106+
.. versionadded:: 3.6
107+
108+
109+
.. c:function:: PyObject* PyTime_FromTimeAndFold(int hour, int minute, int second, int usecond, int fold)
110+
111+
Return a :class:`datetime.time` object with the specified hour, minute, second,
112+
microsecond and fold.
113+
114+
.. versionadded:: 3.6
115+
116+
101117
.. c:function:: PyObject* PyTime_FromTime(int hour, int minute, int second, int usecond)
102118
103119
Return a :class:`datetime.time` object with the specified hour, minute, second and
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold as per PEP 495.
2+
Patch by Edison Abahurire.

0 commit comments

Comments
 (0)
0