public static long getLong(Timestamp timestamp) {
    return timestamp.toEpochSecond();
  }
@return double representation of the timestamp, accurate to microseconds
serde/src/java/org/apache/hadoop/hive/serde2/io/TimestampWritableV2.java