Browse Source
bpo-30155: Add macros to get tzinfo from datetime instances (GH-21633)
bpo-30155: Add macros to get tzinfo from datetime instances (GH-21633)
Add PyDateTime_DATE_GET_TZINFO() and PyDateTime_TIME_GET_TZINFO() macros.pull/22416/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 46 additions and 17 deletions
-
11Doc/c-api/datetime.rst
-
6Doc/whatsnew/3.10.rst
-
8Include/datetime.h
-
14Lib/test/datetimetester.py
-
3Misc/NEWS.d/next/C API/2020-07-26-19-39-45.bpo-30155.rHZRJ_.rst
-
11Modules/_datetimemodule.c
-
6Modules/_testcapimodule.c
-
4Modules/_zoneinfo.c
@ -0,0 +1,3 @@ |
|||
Add :c:func:`PyDateTime_DATE_GET_TZINFO` and |
|||
:c:func:`PyDateTime_TIME_GET_TZINFO` macros for accessing the ``tzinfo`` |
|||
attributes of :class:`datetime.datetime` and :class:`datetime.time` objects. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue