News for hackers. Stuff that matters.
Re:Whenever – typed and DST-safe datetimes for Python by jessekv on Sunday April 13, 2025 @10:45AM (#43673167)
I recently learned that there is datetime.UTC which is an alias of datetime.timezone.utc

It helps a bit with the verbosity:

from datetime import datetime, UTC

datetime.now(UTC)

Re:Whenever – typed and DST-safe datetimes for Python by maleldil on Sunday April 13, 2025 @11:34AM (#43673535)
That's from 3.11 onwards.