Example usage for java.time OffsetTime isBefore

List of usage examples for java.time OffsetTime isBefore

Introduction

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

Prototype

public boolean isBefore(OffsetTime other) 

Source Link

Document

Checks if the instant of this OffsetTime is before 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.isBefore(OffsetTime.now()));

}