I am trying to use Julia to analyze some disk I/O data. My Mac provides timestamps like 12:52:22.631949
I want to create a Time object but the extra microseconds (949) appear to cause the parser to choke.
tf = DateFormat(“H:M:S.s”)
t = parse(Time,“12:52:22.631949”,tf)
InexactError: convert(Dates.Decimal3, 631949)
Looking at the source code, I see there are provisions for including Microsecond and Nanosecond in formatting, but apparently not for parsing.
My workaround has been to build a Time object manually by splitting the string, but this seems kludgy. Anyone have any suggestions how to do this cleanly?