Instant.ofEpochSecond

Obtains an instance of {@code Instant} using seconds from the epoch of 1970-01-01T00:00:00Z. !(p) The nanosecond field is set to zero.

@param epochSecond the number of seconds from 1970-01-01T00:00:00Z @return an instant, not null @throws DateTimeException if the instant exceeds the maximum or minimum instant

  1. Instant ofEpochSecond(long epochSecond)
    class Instant
    static
    ofEpochSecond
  2. Instant ofEpochSecond(long epochSecond, long nanoAdjustment)

Meta