Re:Excel warriors who save governments and companies from sp...
by ptx on Friday October 16, 2020 @11:51PM
(#24807356)
Not really Python as such, it seems, but rather some third party library[1] which promises "generic parsing of dates in almost any string format". This is impossible to do correctly (what is 01/02/03?) and usually a bad idea to attempt.
Re:Excel warriors who save governments and companies from sp...
by Moru on Saturday October 17, 2020 @11:13AM
(#24810552)
There is actually some standards here at least. 01/02/03 has one order, 01-02-03 another. The character between tells you how to read them. Not that most people know how though...
Re:Excel warriors who save governments and companies from sp...
by fauigerzigerk on Saturday October 17, 2020 @03:13PM
(#24812381)
>01/02/03 has one order
It has one order in the U.S and a different one in most other countries.
Re:Excel warriors who save governments and companies from sp...
by icebraining on Saturday October 17, 2020 @09:11AM
(#24809710)
Can't say I blame python or even the library; why is the code even trying to convert every string in an object, instead of just the keys that are supposed to contain dates?! Seems like a poor hack, imho.
I recently hit a bug where all data was being checked to see if it was a datetime, and python interpreted `st1` as September 1st of the current year.
https://github.com/mozilla/frost/pull/330