epared to accept that I've missed something, but at the moment I
can't understand what that is.
Regards,
Stuart
From: core-libs-dev On Behalf Of Roger Riggs
Sent: 03 May 2023 20:58
To:core-libs-dev@openjdk.org
Subject: Re: Time difference calculation bug
Hi,
The seconds and n
've missed something, but at the moment I
can't understand what that is.
Regards,
Stuart
From: core-libs-dev On Behalf Of Roger Riggs
Sent: 03 May 2023 20:58
To:core-libs-dev@openjdk.org
Subject: Re: Time difference calculation bug
Hi,
The seconds and nano-seconds are computed s
plusMillis(1);
> }
>
> This prints:
>
> 994
> 995
> 996
> 997
> 998
> 1000
> 1000
> 1001
> 1002
> 1003
>
> I'm fully prepared to accept that I've missed something, but at the moment
> I can't understand what that is.
>
> Rega
}
This prints:
994
995
996
997
998
1000
1000
1001
1002
1003
I'm fully prepared to accept that I've missed something, but at the moment I
can't understand what that is.
Regards,
Stuart
From: core-libs-dev On Behalf Of Roger Riggs
Sent: 03 May 2023 20:58
To: core-libs-dev@open
Hi,
The seconds and nano-seconds are computed separately.
The representation of Instant holds seconds and nanoseconds separately.
The computation is performed on the nano-seconds of the Instant and
truncated to milliseconds.
The value of 0.000999 becomes 0 when truncated to MILLIS.
Regards, R