Example usage for java.time OffsetDateTime equals

List of usage examples for java.time OffsetDateTime equals

Introduction

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

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks if this date-time is equal to another date-time.

Usage

From source file:Main.java

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

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