The Instant jhost stored epoch-ms, so plusNanos/getNano rounded to the millisecond and two instants a nanosecond apart compared =. Store epoch-nanos instead: mk-instant still takes ms (scales to nanos) for the ms-based zone/Date callers, mk-instant-nanos/inst-nanos own the nano arithmetic, and inst-ms floors nanos back to ms. plus/minus/getNano/truncatedTo/compare/equals and the ISO renderer all run on nanos; toString shows the fraction in 3/6/9-digit groups like ISO_INSTANT. Fixes tick's interval coincidence test (shift end by one nano). |
||
|---|---|---|
| .. | ||
| chez | ||