Good Morning,
I have been working on some code in basic and would like to convert to python. The specific stumbling block is the python equivalent for setTimeStamp.
insSql="INSERT INTO SAMPLE_HEADER (SAMPLE_ID,OPERATOR,SUBMITTER,FILE,LP_ANALYSIS_TIME,HP_ANALSYS_TIME,REPORT_TIME,REPORT_RANGE,ADV_CONTACT_ANGLE,REC_CONTACT_ANGLE,PENETROMETER_ID,PENETROMETER_MASS,SAMPLE_MASS,STEM_VOLUME_USED,SHOW_NEG_INT,CORRECTION_TYPE,HG_TEMP,ASSEMBLY_MASS,PENETROMETER_VOL) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
stmt = dbConn.prepareStatement(insSql)
stmt.setString(1,sampleId)
stmt.setString(2,operator)
stmt.setString(3,submitter)
stmt.setString(4,file)
stmt.setTimeStamp(5,lpAnalysisTime)
stmt.setTimeStamp(6,hpAnalysisTime)
stmt.setTimeStamp(7,reportTime)
stmt.setString(8,reportRange)
stmt.setInt(9,advContactAngle)
stmt.setInt(10,recContactAngle)
stmt.setString(11,penetroMeterId)
stmt.setDouble(12,penetroMeterMass)
stmt.setDouble(13,sampleMass)
stmt.setInt(14,stemVolume)
stmt.setBoolean(15,showNegInt)
stmt.setString(16,correctionType)
stmt.setDouble(17,HgTemp)
stmt.setDouble(18,assemblyMass)
stmt.setDouble(19,penetroMeterVol)
stmt.executeUpdate()
dbConn.commit()
stmt.clearparameters()
stmt.Close()
Set stmt=nothing