Example usage for java.time ZonedDateTime equals

List of usage examples for java.time ZonedDateTime equals

Introduction

In this page you can find the example usage for java.time ZonedDateTime 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) {
    ZonedDateTime dateTime = ZonedDateTime.now();

    System.out.println(dateTime.equals(ZonedDateTime.now()));
}