Example usage for java.time OffsetTime isEqual

List of usage examples for java.time OffsetTime isEqual

Introduction

In this page you can find the example usage for java.time OffsetTime isEqual.

Prototype

public boolean isEqual(OffsetTime other) 

Source Link

Document

Checks if the instant of this OffsetTime is equal to that of the specified time applying both times to a common date.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();

    System.out.println(m.isEqual(OffsetTime.now()));

}