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
}
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
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
'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
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