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

Improve the available precision for NSDate to Instant conversion #448

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dkhalanskyjb
Copy link
Collaborator

Turns out, a roundtrip in the near times only loses 0.5 microseconds of precision, whereas at the far ends of the supported range, we lose 10 microseconds.
It is a lot, but much less than the microsecond precision loss that happens when an NSDate is formatted (which led us to this implementation in the first place).

Fixes #427

Turns out, a roundtrip in the near times only loses
0.5 microseconds of precision, whereas at the far ends of the
supported range, we lose 10 microseconds.
It is a lot, but much less than the microsecond precision loss
that happens when an NSDate is formatted (which led us to this
implementation in the first place).

Fixes #427
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.

Precision loss for NSDate
1 participant