Here you can find the source of checkIfTimeExist(LocalDateTime date)
public static boolean checkIfTimeExist(LocalDateTime date)
//package com.java2s; //License from project: Open Source License import java.time.LocalDateTime; public class Main { public static boolean checkIfTimeExist(LocalDateTime date) { LocalDateTime currentTime = LocalDateTime.now(); return currentTime.getHour() != date.getHour() || currentTime.getMinute() != date.getMinute(); }/*from ww w .j a va2 s. c o m*/ }