long baseTime = baseDate.getTime() / 1000; long beforeTime = beforeDate.getTime() / 1000; return beforeTime < baseTime;
if((baseDate == null) || (beforeDate == null)) { throw new IllegalArgumentException("Can't compare the dates, at least one of them is null"); } else { long baseTime = baseDate.getTime() / 1000; long beforeTime = beforeDate.getTime() / 1000; return beforeTime < baseTime; }
   public static boolean before(Date baseDate, Date beforeDate)   {      long baseTime = baseDate.getTime() / 1000;      long beforeTime = beforeDate.getTime() / 1000;      return beforeTime < baseTime;   }