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
Similar to the daysinmonth issue, I think another useful function would be the yearmonthday.
To put in context, I'm developing a function that does some daily calculation from sub-daily temporal data (daily means, sums, etc..). Hence, to construct the output array (daily data), I need to know how many unique days is contained in the input array (sub-hourly data).
For example:
using Dates
d =DateTime(2000, 01, 01, 0, 0, 0):Hour(1):DateTime(2000,12, 31)
arraylen =unique(Dates.yearmonthday.(Dates.days.(d)))
dataout =Array{Float64}(undef, N, M, arraylen)
But the function is not defined for DateTimeNoLeap, etc...
Hello again!
Similar to the daysinmonth issue, I think another useful function would be the
yearmonthday
.To put in context, I'm developing a function that does some daily calculation from sub-daily temporal data (daily means, sums, etc..). Hence, to construct the output array (daily data), I need to know how many unique days is contained in the input array (sub-hourly data).
For example:
But the function is not defined for DateTimeNoLeap, etc...
For reference, the original Julia Dates
yearmonthday
function is here.https://github.com/JuliaLang/julia/blob/c670f1acdba1971b8545f1c3f3b0cfe55ee0d3f5/stdlib/LibGit2/src/signature.jl#L40
The text was updated successfully, but these errors were encountered: