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

Improve javadoc for java.time.Instant.getEpochSecond

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • Verification:
      Not verified

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: