Java tutorial
import java.time.LocalDateTime; public class Main { public static void main(String[] args) { LocalDateTime a = LocalDateTime.now(); System.out.println(a.equals(LocalDateTime.now())); } }