-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
The DateTime constructors that use DateFormat are not implemented for the CFDateTime types. For example,
julia> DateTime("19991205", "yyyymmdd")
1999-12-05T00:00:00
julia> DateTimeNoLeap("19991205", "yyyymmdd")
ERROR: MethodError: no method matching Int64(::String)
Closest candidates are:
Int64(::Union{Bool, Int32, Int64, UInt32, UInt64, UInt8, Int128, Int16, Int8, UInt128, UInt16}) at boot.jl:717
Int64(::Ptr) at boot.jl:727
Int64(::Float32) at float.jl:697
...
Stacktrace:
[1] DateTimeNoLeap(::String, ::String, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64) at /Users/portmann/.julia/packages/NCDatasets/O31tb/src/time.jl:317 (repeats 2 times)
[2] top-level scope at none:0
It would be handy to have these.
PS Great job on NCDatasets, I find it very useful!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels