-
-
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
Using repr
on DateTime
shows pretty-printed version
#29909
Comments
cc: @quinnj |
I'll note that I thought of this based upon a comment @JeffBezanson made on discourse. |
Yeah, this is not the desired behavior—it should print the way you input it. |
Yeah, looks like TimeTypes are just hitting the default path which calls |
Hey, I'd like to contribute to this if it is open. I'm a beginner, so could you also guide me on how to get started with this issue? |
Hi @p-murli. To get started you should take a look at the code that the Dates stdlib uses for julia> using Dates
julia> d = Date(2018)
2018-01-01
julia> print(d)
2018-01-01
julia> string(d)
"2018-01-01"
julia> show(d)
Date(2018, 1, 1)
julia> repr(d)
"Date(2018, 1, 1)" I'll mention that the |
Hi @omus, Please tell me if I am missing something. But aren't the following two outputs contradictory ? |
REPL printing calls
|
Thanks @JeffBezanson . |
According to the docstring for
repr
:Unfortunately this is not the behaviour of
Date
andDateTime
:The text was updated successfully, but these errors were encountered: