Instant MIN example

Description

Instant MIN defines the minimum supported Instant, '-1000000000-01-01T00:00Z'.

Syntax

MIN has the following syntax.


public static final Instant MIN

Example

The following example shows how to use MIN.


import java.time.Instant;
/*from   w w  w  .j av  a 2s. c om*/
public class Main {
  public static void main(String[] args) {
    Instant instant = Instant.MIN;
    System.out.println(instant.getEpochSecond());
    
  }
}

The code above generates the following result.





















Home »
  Java Date Time »
    java.time Reference »




Clock
DayOfWeek
Duration
Instant
LocalDate
LocalDateTime
LocalTime
Month
MonthDay
OffsetDateTime
OffsetTime
Period
Year
YearMonth
ZonedDateTime
ZoneId
ZoneOffset