code: public static int compare(Date left, double right) {
  	return compare(left.getTime() / 1000, DateTimeUtil.getInstance().toDateTime(right).getTime() / 1000);
      }
docs: compares a Date with a double
  
  @param left
  @param right
  @return difference as int