Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8196609

Improve javadoc for java.time.Instant.getEpochSecond

XMLWordPrintable

    • b01
    • Not verified

      java.time.Instant.getEpochSecond javadoc can be improved to be more specific.

      The getNano method correctly specifies the return as: 'total number of nanoseconds from the second returned by getEpochSecond()"

      However, the getEpochSecond javadoc says: "the nanosecond part of the day".
      It should be "the nanosecond part of the second.".

      Ref: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-February/051232.html

            martin Martin Buchholz
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: