Example usage for java.time LocalDateTime isEqual

List of usage examples for java.time LocalDateTime isEqual

Introduction

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

Prototype

@Override 
public boolean isEqual(ChronoLocalDateTime<?> other) 

Source Link

Document

Checks if this date-time is equal to the specified date-time.

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalDateTime a = LocalDateTime.now();

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

From source file:org.apache.hadoop.yarn.server.resourcemanager.security.HopsworksRMAppSecurityActions.java

protected boolean isTime2Renew(LocalDateTime now, LocalDateTime tokenExpiration) {
    return now.isAfter(tokenExpiration) || now.isEqual(tokenExpiration);
}