Example usage for java.time OffsetDateTime MAX

List of usage examples for java.time OffsetDateTime MAX

Introduction

In this page you can find the example usage for java.time OffsetDateTime MAX.

Prototype

OffsetDateTime MAX

To view the source code for java.time OffsetDateTime MAX.

Click Source Link

Document

The maximum supported OffsetDateTime , '+999999999-12-31T23:59:59.999999999-18:00'.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.toString());
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.isBefore(OffsetDateTime.MIN));
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.compareTo(OffsetDateTime.MIN));
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.isEqual(OffsetDateTime.MIN));
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.hashCode());
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.toEpochSecond());
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.isAfter(OffsetDateTime.MIN));
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o.equals(OffsetDateTime.MIN));
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;

    System.out.println(o);
}

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;
    Instant i = o.toInstant();
    System.out.println(i.getNano());
}