private static int compareTimestamp(Timestamp timestamp, long otherTimeMs) {
    return Utils.compareTimes(timestampToMs(timestamp), otherTimeMs);
  }
Compare a nullable timestamp against {@code otherTimeMs}.
@param timestamp the nullable {@link Timestamp} to compare.
@param otherTimeMs the time value to compare against.
@return -1 if the timestamp is earlier than {@code otherTimeMs}, 0 if the times are equal, and 1 if
        the timestamp is later than {@code otherTimeMs}. {@code null} is considered greater than any other time.
ambry-named-mysql/src/main/java/com/github/ambry/named/MySqlNamedBlobDb.java