Java Date Time - OffsetDateTime MIN example








OffsetDateTime MIN defines the minimum supported OffsetDateTime, '-999999999-01-01T00:00:00+18:00'.

Syntax

MIN has the following syntax.

public static final OffsetDateTime MIN

Example

The following example shows how to use MIN.

import java.time.OffsetDateTime;

public class Main {
  public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MIN;
    
    System.out.println(o);
  }
}

The code above generates the following result.