Java Date Time Java Java API
java.time.Instant
public static Instant ofEpochSecond(long epochSecond)
Obtains an instance of Instant using seconds from the epoch of 1970-01-01T00:00:00Z.
Instant
package com.logicbig.example.instant;import java.time.Instant;public class OfEpochSecondExample { public static void main(String... args) { Instant i = Instant.ofEpochSecond(7000000); System.out.println(i); }}
1970-03-23T00:26:40Z