]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91928: Add what's new entry for datetime.UTC alias (GH-92567)
authorPaul Ganssle <1377457+pganssle@users.noreply.github.com>
Tue, 10 May 2022 03:51:28 +0000 (23:51 -0400)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 03:51:28 +0000 (20:51 -0700)
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
Doc/whatsnew/3.11.rst

index ed61e01f9c38ed2782f5c3a590d3d96d42e185e8..db5ede683a6c63df50d3245d9054c8e7126e0e73 100644 (file)
@@ -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).