I have a series of timestamps like 2020-01-01T12:34:56.789123Z. Trying to parse it with
DateTime("2020-01-01T12:34:56.789123Z", dateformat"Y-m-dTH:M:S.ssssssZ") results in
ERROR: LoadError: InexactError: convert(Dates.Decimal3, 789123).
I found TimesDates.jl, and I can work around this issue with the following:
DateTime(TimeDate(timestr[1:end-1])), but that seems more brittle and also sort of silly. Is there a more canonical way to do this?