[Python-checkins] gh-91928: Add what's new entry for datetime.UTC alias (GH-92567)

miss-islington webhook-mailer at python.org
Mon May 9 23:51:33 EDT 2022


https://github.com/python/cpython/commit/a0a825c38a0c2ceec024a276f1f527c93ba57af2
commit: a0a825c38a0c2ceec024a276f1f527c93ba57af2
branch: main
author: Paul Ganssle <1377457+pganssle at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-09T20:51:28-07:00
summary:

gh-91928: Add what's new entry for datetime.UTC alias (GH-92567)



I merged this without a What's New entry to avoid merge conflicts, so here's the follow-up adding the entry.

@Kab1r do you mind reviewing?

Closes #91928

Automerge-Triggered-By: GH:pganssle

files:
M Doc/whatsnew/3.11.rst

diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index ed61e01f9c38e..db5ede683a6c6 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -434,6 +434,8 @@ asyncio
 datetime
 --------
 
+* Add :attr:`datetime.UTC`, a convenience alias for
+  :attr:`datetime.timezone.utc`. (Contributed by Kabir Kwatra in :gh:`91973`.)
 * :meth:`datetime.date.fromisoformat`, :meth:`datetime.time.fromisoformat` and
   :meth:`datetime.datetime.fromisoformat` can now be used to parse most ISO 8601
   formats (barring only those that support fractional hours and minutes).



More information about the Python-checkins mailing list