Java Instant getEpochSecond() methodThe getEpochSecond() method of Java Instant class is used to get the number of seconds from the Java epoch of 1970-01-01T00:00:00Z The epoch second count is a simple incrementing count of seconds where second 0 is 1970-01-01T00:00:00Z. The nanosecond part of the day is returned by getNano(). SyntaxParametersNo parameters. ReturnThe seconds from the epoch of 1970-01-01T00:00:00Z. Example 1Output: The output will be like this. 1488537450 Next TopicJava-instant-equals-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India