LocalDate MIN example

Description

LocalDate MIN defines the minimum supported LocalDate, '-999999999-01-01'.

Syntax

MIN has the following syntax.


public static final LocalDate MIN

Example

The following example shows how to use MIN.


import java.time.LocalDate;
/*from w w w  . j  av a2s.  co m*/
public class Main {
  public static void main(String[] args) {
    LocalDate a = LocalDate.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