RE: Time difference calculation bug

2023-05-03 Thread SHARPE, Stuart (Commercial & Institutional CDIO)
999 becomes 0 when truncated to MILLIS. Regards, Roger On 5/3/23 12:54 PM, SHARPE, Stuart (Commercial & Institutional CDIO) wrote: Hello,   I believe I have discovered a bug in java.time. I've searched Jira and couldn't find any existing similar issue.   Consider the following c

Time difference calculation bug

2023-05-03 Thread SHARPE, Stuart (Commercial & Institutional CDIO)
Hello, I believe I have discovered a bug in java.time. I've searched Jira and couldn't find any existing similar issue. Consider the following code: var t1 = Instant.parse("2023-05-03T10:00:00.000999Z"); var t2 = Instant.parse("2023-05-03T10:00:01.000Z"); var t3 = Instant.pa