Here you can find the source of beforeNow(final Date d)
public static boolean beforeNow(final Date d)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.Date; public class Main { public static boolean beforeNow(final Date d) { return d.before(new Date()); }/* w w w. ja v a 2 s.c o m*/ public static boolean beforeNow(final Timestamp d) { return d.before(new Date()); } }