kotlinx-datetime icon indicating copy to clipboard operation
kotlinx-datetime copied to clipboard

Improve the available precision for NSDate to Instant conversion

Open dkhalanskyjb opened this issue 1 year ago • 0 comments

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

dkhalanskyjb avatar Oct 17 '24 11:10 dkhalanskyjb