LocalDateTime MIN example

Description

LocalDateTime MIN defines the minimum supported LocalDateTime, '-999999999-01-01T00:00:00'.

This is the local date-time of midnight at the start of the minimum date.

Syntax

MIN has the following syntax.


public static final LocalDateTime MIN

Example

The following example shows how to use MIN.


import java.time.LocalDateTime;
//  w  ww .j ava 2 s.co m
public class Main {
  public static void main(String[] args) {
    LocalDateTime a = LocalDateTime.MIN;
    
    System.out.println(a);
  }
}

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