Here you can find the source of before(Timestamp t1, Timestamp t2)
public static boolean before(Timestamp t1, Timestamp t2)
//package com.java2s; import java.sql.Timestamp; public class Main { public static boolean before(Timestamp t1, Timestamp t2) { if (t1 == null || t2 == null) { return false; }/* w w w . ja v a2s.co m*/ return t1.before(t2); } }