Hi
Julia 1.9.3 MacOS x86_64
As I understand the Dates documentation, the resolution for a DateTime object is milliseconds and for a Time object it is nanoseconds.
So, I believe I should be able to parse a nanosecond time string into a Time object, but I’m struggling with this.
For example, this works…
julia> t = parse(Time, “00:00:00.123”)
00:00:00.123
julia> t
00:00:00.123
julia> t.instant
123000000 nanoseconds
But, I can’t get this to work…
parse(Time, “00:00:00.123456789”)
ERROR: ArgumentError: Unable to parse date time. Expected directive DatePart(s) at char 10
I’ve tried various DateFormat strings, but none seem to work.
An example in julia/stdlib/Dates/test/io.jl with finer resolution than milliseconds would be helpful.
Kind regards