-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
Creating range of ZonedDateTime, 2 inconsistencies with DateTime version #104
Comments
Thanks for filing this issue Jock.
I think having the step size default to be 1 day is much more reasonable than the current 1 millisecond. I'll note however that in Julia 0.7 that specifying a julia> DateTime(2000,1):DateTime(2000,2)
WARNING: colon(start::T, stop::T) where T <: DateTime is deprecated, use start:Day(1):stop instead. I'll address this for Julia 0.6 however.
That warning is mostly due to me not setting a default step in Julia 0.6. Essentially the issue is that Don't worry about the deprecation warning as I'll address this with the fix to 1. Thanks again for the report. |
Thanks for replying. Thanks again, |
I would definitely advise that you specify a step size. That said I'll still be changing the default for 0.6 to avoid confusion with the warning you saw and it'll allow me to introduce a deprecation in 0.7. |
Hi there,
I am creating a range of
ZonedDateTime
, usingJulia 0.6.1
.Using only
Base.DateTime
I do the following, and all is well:Using
ZonedDateTime
I do the following:Although both versions work, I see 2 issues:
DateTime
version has stepsize of 1 day, whereas theZonedDateTime
version has stepsize 1 millisecond.ZonedDateTime
version gives the following deprecation warning:Are these 2 issues real and to be fixed?
Or is my understanding flawed and I should be doing something different?
Thanks,
Jock
The text was updated successfully, but these errors were encountered: