dayofweek() return value inconsistent with day definition for Sunday
msravi opened this issue · comments
msravi commented
Seems like the return value of dayofweek() is inconsistent with the day definition for Sunday. dayofweek() returns 0 for Sunday, while Sunday is defined as 7.
julia> using Datetime
julia> dt=date("2014-01-05")
2014-01-05
julia> dayofweek(dt)
0
julia> Sunday
7
Regards,
Ravi
Jacob Quinn commented
This is fixed in JuliaLang/julia#5328 as well.
Jacob Quinn commented
Fixed by ed8123e