summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-09-23 18:43:45 (GMT)
committerGitHub <noreply@github.com>2020-09-23 18:43:45 (GMT)
commit2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5 (patch)
tree7b8e1b98c94d77ffcdcfc61645c6b40f5ebd44ab /Misc
parent9c4eac7f02ddcf32fc1cdaf7c08c37fe9718c1fb (diff)
downloadcpython-2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5.zip
cpython-2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5.tar.gz
cpython-2e4dd336e5b50fd30947fdecb605ddcd71f7f6f5.tar.bz2
bpo-30155: Add macros to get tzinfo from datetime instances (GH-21633)
Add PyDateTime_DATE_GET_TZINFO() and PyDateTime_TIME_GET_TZINFO() macros.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2020-07-26-19-39-45.bpo-30155.rHZRJ_.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2020-07-26-19-39-45.bpo-30155.rHZRJ_.rst b/Misc/NEWS.d/next/C API/2020-07-26-19-39-45.bpo-30155.rHZRJ_.rst
new file mode 100644
index 0000000..a276759
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2020-07-26-19-39-45.bpo-30155.rHZRJ_.rst
@@ -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.