Java Date Time - Instant MIN example








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;

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.