-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
use DateTime consistently in Base for time()
/ now()
/ stat()
/ etc.
#15405
Comments
Is this issue still open? I'm new here and would like to try this out if it is still open. But I have trouble finding where these changes need to be made. Are you referring to the time() method which currently returns Int? I cannot find where it is implemented. Also, Dates.now() already returns DateTime. I also am not sure what stat() means. I cannot find a stat() method that relates to time. Thanks. |
@denisli, yes this issue is still opening. Take a look in the Libc.jl file/module for the stat/time functions. |
I'm not sure if this is the best thing to do given #5155 and the desire for modularity. Wouldn't it be more idiomatic to make most of these accept an output type argument, then you could choose what output type (and module dependencies) you want? If we want to change the default to depend on Dates types, then Dates should define the version without an output type argument, rather than Base. And what's the deprecation path here? |
I would say
|
Hello. Is this issue still open? I am new to open source contributions and would like to start working on this issue. |
I think we're really moved in the other direction here and fortuitously ended up where we should be: Base uses UNIX timestamps for time and does not depend on the Dates package. Only if you want to work with Date and DateTime objects do you depend on Dates and you can use |
part of the reason DateTime was added to base is so that times could be expressed consistently as objects (locale-aware and dimension) rather than raw numbers (Float64)
The text was updated successfully, but these errors were encountered: