Skip to content

Print ISO standard format in IsoDuration#toString() #483

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

Merged
merged 2 commits into from
Apr 9, 2018

Conversation

zhenlineo
Copy link
Contributor

Fixed a bug where the size of nanos should be int

Fixed a bug where the size of nanos should be `int`
@zhenlineo zhenlineo requested a review from lutovich April 5, 2018 13:25
Copy link
Contributor

@lutovich lutovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhenlineo review completed. Made one comment. Would be also nice to add tests for zero and negative duration.

", nanoseconds=" + nanoseconds +
'}';
// print the duration in iso standard format.
if ( this == ZERO )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this.equals(ZERO)? Then last if with "this was all zeros (but not ZERO for some reason)" comment can be removed.

@lutovich lutovich merged commit c40695e into neo4j:1.6 Apr 9, 2018
@lutovich lutovich deleted the 1.6-duration branch April 9, 2018 09:42
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

Successfully merging this pull request may close these issues.

2 participants