Is there an easy way of converting a DateTime to a string with Day Of Year (DOY)?
julia> time = DateTime(2017,5,16,14,20)
julia> floor(convert(Float64,time - DateTime(Dates.Year(time)) + DateTime(Dates.Day(1)))/1000/60/60/24)
136.0
Ideally I could just do something like this.
julia> dfmt = Dates.DateFormat("yyyyddd_HHMMSS")
julia> Dates.format(time,dfmt)
"2017136_142000"
Dates doesn’t appear to have a DOY formatting string though.
https://github.com/JuliaLang/julia/blob/master/test/dates/io.jl