OffsetTime MAX example

Description

OffsetTime MAX defines the maximum supported OffsetTime, '23:59:59.999999999-18:00'.

Syntax

MAX has the following syntax.


public static final OffsetTime MAX

Example

The following example shows how to use MAX.


import java.time.OffsetTime;
/*w w w  .  ja  va  2  s  .  c  o m*/
public class Main {
  public static void main(String[] args) {
    OffsetTime m = OffsetTime.MAX;

    System.out.println(m);

  }
}

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