mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
bpo-36783: Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold (GH-13147)
This commit is contained in:
parent
14987d4dc8
commit
5765ecf79f
2 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
Added C API Documentation for Time_FromTimeAndFold and PyDateTime_FromDateAndTimeAndFold as per PEP 495.
|
||||
Patch by Edison Abahurire.
|
||||
Loading…
Add table
Add a link
Reference in a new issue