public long getTimeInSeconds() {
    return get().getTime() / 1000;
  }
@return time in seconds corresponding to this DateWritable
storage-api/src/java/org/apache/hadoop/hive/serde2/io/DateWritable.java