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