summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorPaul Ganssle <1377457+pganssle@users.noreply.github.com>2023-04-27 17:32:30 (GMT)
committerGitHub <noreply@github.com>2023-04-27 17:32:30 (GMT)
commit0b7fd8ffc5df187edf8b5d926cee359924462df5 (patch)
treef88f8ba6dea519974bc2da3a4e18d69d07aefc8f /Misc
parenta5308e188b810e5cc69c1570bdc9b21ed6c87805 (diff)
downloadcpython-0b7fd8ffc5df187edf8b5d926cee359924462df5.zip
cpython-0b7fd8ffc5df187edf8b5d926cee359924462df5.tar.gz
cpython-0b7fd8ffc5df187edf8b5d926cee359924462df5.tar.bz2
GH-103857: Deprecate utcnow and utcfromtimestamp (#103858)
Using `datetime.datetime.utcnow()` and `datetime.datetime.utcfromtimestamp()` will now raise a `DeprecationWarning`. We also have removed our internal uses of these functions and documented the change.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-04-25-17-03-18.gh-issue-103857.Mr2Cak.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-04-25-17-03-18.gh-issue-103857.Mr2Cak.rst b/Misc/NEWS.d/next/Library/2023-04-25-17-03-18.gh-issue-103857.Mr2Cak.rst
new file mode 100644
index 0000000..3bd370d
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-04-25-17-03-18.gh-issue-103857.Mr2Cak.rst
@@ -0,0 +1,2 @@
+Deprecated :meth:`datetime.datetime.utcnow` and
+:meth:`datetime.datetime.utcfromtimestamp`. (Patch by Paul Ganssle)