Skip to content

Commit

Permalink
bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyD…
Browse files Browse the repository at this point in the history
…ateTime_FromDateAndTimeAndFold (GH-13147)

(cherry picked from commit 5765ecf)

Co-authored-by: Edison A <20975616+SimiCode@users.noreply.github.com>
  • Loading branch information
miss-islington and edison12a committed May 7, 2019
1 parent a6516f8 commit 146010e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Doc/c-api/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold as per PEP 495.
Patch by Edison Abahurire.

0 comments on commit 146010e

Please sign in to comment.