code: public java.sql.Timestamp toSqlTimestamp() {
      java.sql.Timestamp ts = new java.sql.Timestamp(seconds * 1000);
      ts.setNanos(nanos);
      return ts;
    }
docs: Returns a JDBC timestamp initialized to the same point in time as {@code this}.