3 ms·
Yes, the datetime api once timezone is involved is quite bad in python. This is why for anything that uses timezone, I use pendulum: https://pendulum.eustace.i
by BiteCode_dev 4y ago
Yes, the datetime api once timezone is involved is quite bad in python.
This is why for anything that uses timezone, I use pendulum: https://pendulum.eustace.io/ https://pendulum.eustace.io/
It's compatible with the datetime api, but it has sane default, nice tools to convert between timezone, some cool date adjustment stuff, and can humanize time in several languages.
Basically, datetime has the same problem as text vs raw bytes in python 2.7, except it has never been fixed.