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

Display Time-likes with more precision #130

Merged
merged 1 commit into from
May 8, 2021

Conversation

mcmire
Copy link
Collaborator

@mcmire mcmire commented May 6, 2021

Specifically, include subseconds in the inspected version of the
time-like to match the absolute maximum precision you can use when
defining a Time. This means that the following two Times will no longer
appear as though they are the same time when diffed:

Time.at(1620017167711.0 / 1000)
Time.local(2021, 5, 2, 22, 46, 7, 710_999)

@mcmire mcmire force-pushed the add-more-precision-to-time-like branch 4 times, most recently from 7d16f96 to 0c2df96 Compare May 6, 2021 06:27
Specifically, include subseconds in the inspected version of the
time-like to match the absolute maximum precision you can use when
defining a Time. This means that the following two Times will no longer
appear as though they are the same time when diffed:

    Time.at(1620017167711.0 / 1000)
    Time.local(2021, 5, 2, 22, 46, 7, 710_999)
@mcmire mcmire force-pushed the add-more-precision-to-time-like branch from 0c2df96 to 4f860a1 Compare May 6, 2021 06:29
@mcmire mcmire merged commit e69d32a into master May 8, 2021
@mcmire mcmire deleted the add-more-precision-to-time-like branch May 8, 2021 01:29
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.

1 participant