From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 10 May 2022 04:07:05 +0000 (-0700) Subject: gh-91928: Add what's new entry for datetime.UTC alias (GH-92567) X-Git-Tag: v3.11.0b2~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d38a2f5b843e1faf6627c2dba7acb9264a98fd2;p=thirdparty%2FPython%2Fcpython.git 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 GH-91928 Automerge-Triggered-By: GH:pganssle (cherry picked from commit a0a825c38a0c2ceec024a276f1f527c93ba57af2) Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com> --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index ed61e01f9c38..db5ede683a6c 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).