Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.