I have a list of dates in the form:
t=[2006-06-01,2006-06-02,2006-06-03]
And I want to apply the function Dates.value()
to it. It works well for a single value, however, for a list like the one shown I get an error:
ERROR: MethodError: no method matching value(::Array{Any,1})
Closest candidates are:
value(::Dates.Time) at /home/buildbot/build-worker/worker/juliapro-release-centos7-0_6/build/tmp_julia/share/julia/stdlib/v1.0/Dates/src/accessors.jl:46
value(::Dates.Period) at /home/buildbot/build-worker/worker/juliapro-release-centos7-0_6/build/tmp_julia/share/julia/stdlib/v1.0/Dates/src/periods.jl:10
value(::Dates.TimeType) at /home/buildbot/build-worker/worker/juliapro-release-centos7-0_6/build/tmp_julia/share/julia/stdlib/v1.0/Dates/src/accessors.jl:45
Stacktrace:
[1] top-level scope at none:0
Any idea how can I do it?
Thank you in advance for any help!