Posted byon under
I was going through the release notes of the new Python 3.12 version the other day, and one item caught my attention in the deprecations section:
utcfromtimestamp()are deprecated and will be removed in a future version.
If you have followed my web development tutorials you must have seen me use
utcnow() a lot, so I will clearly need to re-train myself to use an alternative, in preparation for the eventual removal of this function (likely a few years out, so no need to panic!).
In this short article I'll tell you more about why these functions are getting the axe, and what to replace them with.