|
|
|
|
|
by grawlinson
1347 days ago
|
|
This kind of stuff really needs to be made explicitly clear in any/all API documentation as it inevitably leads to underlying issues later down the line. It's amazing how something as "simple" as official time/date libraries still have footguns like these. 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...