I have a list of date strings, potentially very large. The format is unknown, but will be the same in all elements. Assume dateutil.parser will succeed in parsing it.
The problem is that the list is very large and dateutil.parser is slow. I could parse one element and then use a faster method (strptime, perhaps) if I could infer the format string. However, as far as I can tell, the parser does not give me the format string it succeeded with.
Is there an elegant solution?