Skip to content

Commit

Permalink
pythongh-91928: Add what's new entry for datetime.UTC alias (pythonGH…
Browse files Browse the repository at this point in the history
…-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 python#91928

Automerge-Triggered-By: GH:pganssle
  • Loading branch information
pganssle committed May 10, 2022
1 parent c56e2bb commit a0a825c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Doc/whatsnew/3.11.rst
Expand Up @@ -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).
Expand Down

0 comments on commit a0a825c

Please sign in to comment.