Example usage for java.time LocalDateTime equals

List of usage examples for java.time LocalDateTime equals

Introduction

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

    System.out.println(a.equals(LocalDateTime.now()));
}