Skip to content
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

Treat date and datetime as atomic #77

Open
derlin opened this issue Oct 10, 2021 · 3 comments
Open

Treat date and datetime as atomic #77

derlin opened this issue Oct 10, 2021 · 3 comments

Comments

@derlin
Copy link

derlin commented Oct 10, 2021

When using e.g. LocalDate, the result of pp looks like:

dateOfBirth = LocalDate(
    MIN = LocalDate.<static cyclic class reference>
    MAX = LocalDate.<static cyclic class reference>
    EPOCH = LocalDate.<static cyclic class reference>
    serialVersionUID = 2942565459149668126
    DAYS_PER_CYCLE = 146097
    DAYS_0000_TO_1970 = 719528
    year = 1988
    month = 6
    day = 13
  )

while the output of toString is way more relevant for debug purposes:

"1988-06-13"

I suggest adding Date, LocalDate, DateTime and LocalDateTime to the list of atomic classes, so that their toString method is used instead.

(P.S: I would like to take this issue for the hacktoberfest 2021 if you are interested in this enhancement).

@snowe2010
Copy link
Owner

Oh goodness, I completely missed this issue. I'm sorry about that. This is a great ticket. If you want to take it you totally can. I probably won't have time to add this for a while.

@migvidal
Copy link

(P.S: I would like to take this issue for the hacktoberfest 2021 if you are interested in this enhancement).

Any news on this?

@derlin
Copy link
Author

derlin commented Feb 1, 2025

Sorry, without any response for hacktoberfest, I kinda left it. This is easy to fix, but @snowe2010 is this project still maintained? Would it make sense to do a PR now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants