public static int millisToDays(long millis) {
    return Date.ofEpochMilli(millis).toEpochDay();
  }
@return time in seconds corresponding to this DateWritableV2
serde/src/java/org/apache/hadoop/hive/serde2/io/DateWritableV2.java