Ten Python datetime pitfalls, and what libraries are (not) doing about it
It’s no secret that the Python datetime library has its quirks.
Not only are there probably more than you think;
third-party libraries don’t address most of them!
I created a new library to explore what a better datetime library could look like.
💬 Discuss this post on Reddit
Contents
Before we start
What’s a pitfall?
Libraries considered
The pitfalls
Incompatible concepts are squeezed into one class
Operators ignore Daylight Saving Time (DST)
The meaning of “naïve” is inconsistent
Non-existent ...
Read more at dev.arie.bovenberg.net