public static long getTimestampAsLong(Timestamp timestamp) {
    return millisToSeconds(timestamp.getTime());
  }
Return a long representation of a Timestamp.
@param timestamp
@return
storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.java