You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia > using Dates
julia> t = Time("14:20")
julia> DateTime(t)
ERROR: MethodError: Cannot `convert` an object of type Time to an object of type DateTime
Closest candidates are:
convert(::Type{DateTime}, ::Date)
@ Dates ~/julia-1.9.3/share/julia/stdlib/v1.9/Dates/src/conversions.jl:30
convert(::Type{DateTime}, ::Millisecond)
@ Dates ~/julia-1.9.3/share/julia/stdlib/v1.9/Dates/src/conversions.jl:34
convert(::Type{T}, ::T) where T
@ Base Base.jl:64
...
Stacktrace:
[1] DateTime(dt::Time)
@ Dates ~/julia-1.9.3/share/julia/stdlib/v1.9/Dates/src/conversions.jl:20
The Dates module has a problem
Even though any
TimeType
is allowed inDateTime
:The text was updated successfully, but these errors were encountered: