by grawlinson · 4y ago · 0 comments
I'm not bashing anyone that's involved as I realize we're all human and prone to mistakes, I just wish we could all do better.
I should mention that the warnings are relatively recent, added in 3.8.
https://docs.python.org/3/library/datetime.html#datetime.dat...
I suspect that the author of Jodatime (which effectively became the java.time API), who was notorious for being almost Linus Torvalds like in his attitudes and approaches, was probably once a very nice and kind individual. Until he started implementing a datetime library.
I mean, he nailed it, but at what cost? java.time.* is my second favourite datetime API, the first being Postgres'.
I'm actually surprised the source code of Jodatime isn't entirely in Zalgotext, technically it'd be valid Java code (I'm pretty sure, anyway).
It's surprising how poorly the situation with timezones is understood in the industry.
We have courses about compilers, databases, data structures, algorithms, cryptography. It's surprising we don't have courses about dates and time.