Here you can find the source of validateTime(LocalDateTime timestamp)
public static boolean validateTime(LocalDateTime timestamp)
//package com.java2s; //License from project: Open Source License import java.time.LocalDateTime; public class Main { public static boolean validateTime(LocalDateTime timestamp) { // do after we update, in case user is changing one at a time return timestamp.isAfter(LocalDateTime.now()); }// w ww .j a v a2s .c o m }