Why is datetime.utcnow deprecated?

And in many cases that’s what users want, as already discussed in length in Deprecating `utcnow` and `utcfromtimestamp`

Frankly Python standard library datetime timezones have design choices I would consider such bad footguns that I would never recommend people use them unless they have an intricate understanding of said design choices.

@moderators why was this topic split? By removing context of this discussion we’re wasting time and energy repeating things already discussed there.

5 Likes