Example usage for java.time Clock equals

List of usage examples for java.time Clock equals

Introduction

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

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks if this clock is equal to another clock.

Usage

From source file:Main.java

public static void main(String[] args) {
    Clock clock = Clock.systemUTC();
    Clock clock1 = Clock.systemDefaultZone();
    System.out.println(clock.equals(clock1));
}