A DESCRIPTION OF THE PROBLEM :
There is such text on the page https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond--
"The nanosecond part of the day is returned by getNanosOfSecond."
But the method getNanosOfSecond() does not present in that doc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The nanosecond part of the second is returned by getNano.
ACTUAL -
The nanosecond part of the day is returned by getNanosOfSecond.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond--
There is such text on the page https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond--
"The nanosecond part of the day is returned by getNanosOfSecond."
But the method getNanosOfSecond() does not present in that doc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The nanosecond part of the second is returned by getNano.
ACTUAL -
The nanosecond part of the day is returned by getNanosOfSecond.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html#getEpochSecond--
- duplicates
-
JDK-8221381 Java SE8 : mistake in the documentation of : getEpochSecond
- Closed