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

Add support for Instant to Long conversion #789

Merged
merged 2 commits into from
Nov 25, 2024
Merged

Conversation

nickaden
Copy link

No description provided.

@nickaden
Copy link
Author

#788

@agrgr agrgr self-requested a review November 21, 2024 13:11
@ParameterizedTest
@ValueSource(ints = {0, 1})
void objectWithInstantField(int converterOption) {
Instant instant = Instant.ofEpochMilli(Instant.now().toEpochMilli()); //to truncate nanos
Copy link

@agrgr agrgr Nov 24, 2024

Choose a reason for hiding this comment

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

Please add a space between "//" and the comment text.
Why not using something like Instant instant = Instant.now().truncatedTo(ChronoUnit.MILLIS);?

Copy link
Author

Choose a reason for hiding this comment

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

Didn't thought about that such method exists :) Thanks, updated

@nickaden nickaden requested a review from agrgr November 25, 2024 10:36
@reugn reugn changed the title Add Instant to Long conversion Add support for Instant to Long conversion Nov 25, 2024
@agrgr agrgr merged commit 855134c into aerospike:main Nov 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants