public static void writeUTF8(OutputStream out, TimestampWritableV2 i)
      throws IOException {
    byte[] b = TimestampWritableV2.nullBytes;
    if (i != null) {
      b = i.toString().getBytes(StandardCharsets.US_ASCII);
    }
    out.write(b);
  }
Writes a Timestamp in JDBC timestamp format to the output stream
@param out
         The output stream
@param i
         The Timestamp to write
@throws IOException
serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyTimestamp.java