cjdoris/Infinity.jl

`parse(::Type{InfExtendedTime{Date}}, ::AbstractString)` doesn't dispatch to Infinity.jl

Closed this issue · 0 comments

omus commented
julia> using Infinity, Dates

julia> tryparse(InfExtendedTime{Date}, "")
InfExtendedTime{Date}(∞)

julia> parse(InfExtendedTime{Date}, "")
ERROR: MethodError: no method matching default_format(::Type{InfExtendedTime{Date}})
Closest candidates are:
  default_format(::Type{DateTime}) at /Users/omus/Development/Julia/1.3/usr/share/julia/stdlib/v1.3/Dates/src/io.jl:451
  default_format(::Type{Date}) at /Users/omus/Development/Julia/1.3/usr/share/julia/stdlib/v1.3/Dates/src/io.jl:452
  default_format(::Type{Time}) at /Users/omus/Development/Julia/1.3/usr/share/julia/stdlib/v1.3/Dates/src/io.jl:453
Stacktrace:
 [1] parse(::Type{InfExtendedTime{Date}}, ::String) at /Users/omus/Development/Julia/1.3/usr/share/julia/stdlib/v1.3/Dates/src/parse.jl:281
 [2] top-level scope at REPL[2]:1