We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
julia> using Dates julia> x = Date(2020):Week(1):Date(2021) 2020-01-01:1 week:2020-12-30 julia> dx = step(x) 1 week julia> zero(dx) 0 weeks julia> one(dx) 1
CC @mcabbott
The text was updated successfully, but these errors were encountered:
I presume the reasoning is this:
julia> one(dx) * Week(3) 3 weeks julia> zero(dx) + Week(3) 3 weeks
Sorry, something went wrong.
It's on purpose the one doesn't have units. That's why there is oneunit
one
oneunit
julia> oneunit(dx) 1 week
That makes sense.
onemult
No branches or pull requests
CC @mcabbott
The text was updated successfully, but these errors were encountered: