@Override
  public int compareTo(DateWritable d) {
    return daysSinceEpoch - d.daysSinceEpoch;
  }
@return time in seconds corresponding to this DateWritable
storage-api/src/java/org/apache/hadoop/hive/serde2/io/DateWritable.java