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