java.time.Instant.getEpochSeconds() javadocs still has a typo (JDK-8167166)
Hey folks, I had a quick question about the javadocs of this method. It looks like the `getNanosOfSecond` -> `getNano` mistake was fixed <https://bugs.openjdk.java.net/browse/JDK-8167166>, but the Java9 docs still claim that `getNano()` returns "the nanosecond part of the day" <https://docs.oracle.com/javase/9/docs/api/java/time/Instant.html#getEpochSecond--> . It should be "the nanosecond part of the *second*". (Apologies if this isn't the correct way to report things like this...) -- kak
Hi, Filed: 8196609 Improve javadoc for java.time.Instant.getEpochSecond <https://bugs.openjdk.java.net/browse/JDK-8196609> Thanks, Roger On 2/1/2018 3:46 PM, Kurt Alfred Kluever wrote:
Hey folks,
I had a quick question about the javadocs of this method. It looks like the `getNanosOfSecond` -> `getNano` mistake was fixed <https://bugs.openjdk.java.net/browse/JDK-8167166>, but the Java9 docs still claim that `getNano()` returns "the nanosecond part of the day" <https://docs.oracle.com/javase/9/docs/api/java/time/Instant.html#getEpochSecond--> .
It should be "the nanosecond part of the *second*".
(Apologies if this isn't the correct way to report things like this...)
participants (2)
-
Kurt Alfred Kluever
-
Roger Riggs