LocalTime MAX example

Description

LocalTime MAX defines the maximum supported LocalTime, '23:59:59.999999999'.

This is the time just before midnight at the end of the day.

Syntax

MAX has the following syntax.


public static final LocalTime MAX

Example

The following example shows how to use MAX.


import java.time.LocalTime;
// w w w  .j  a va 2  s .co  m
public class Main {
  public static void main(String[] args) {
    LocalTime l = LocalTime.MAX;

    System.out.println(l);
  }
}

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