AnsweredAssumed Answered

Arcpy da insertcursor and date time fields

Question asked by dean.mcgowan.vattenfall on Oct 19, 2016
Latest reply on Oct 20, 2016 by dean.mcgowan.vattenfall

i need to add new rows to a table in a file geodatabase using python (da.insertcursor). One of the fields that I am  adding data to is a datetime. The insert operation functions correctly except for the fact that the time component is always omitted in the resulting datetime firks. I understand that shape files only store dates but that this doesn't apply to file geodatabases. I verified this by manually adding an entry in ArcGIS with a time component; this worked fine. I have checked the datetime variable that I create and pass in python and it includes all data as expected. Has anyone else had trouble with this? Is there a workaround?