src/java.base/share/classes/java/time/Instant.java
changeset 48739 59bba47f435e
parent 47216 71c04702a3d5
child 49433 b6671a111395
equal deleted inserted replaced
48738:cdd3239a2a61 48739:59bba47f435e
   608     /**
   608     /**
   609      * Gets the number of seconds from the Java epoch of 1970-01-01T00:00:00Z.
   609      * Gets the number of seconds from the Java epoch of 1970-01-01T00:00:00Z.
   610      * <p>
   610      * <p>
   611      * The epoch second count is a simple incrementing count of seconds where
   611      * The epoch second count is a simple incrementing count of seconds where
   612      * second 0 is 1970-01-01T00:00:00Z.
   612      * second 0 is 1970-01-01T00:00:00Z.
   613      * The nanosecond part of the day is returned by {@link #getNano}.
   613      * The nanosecond part is returned by {@link #getNano}.
   614      *
   614      *
   615      * @return the seconds from the epoch of 1970-01-01T00:00:00Z
   615      * @return the seconds from the epoch of 1970-01-01T00:00:00Z
   616      */
   616      */
   617     public long getEpochSecond() {
   617     public long getEpochSecond() {
   618         return seconds;
   618         return seconds;