Apr-04-2024, 01:38 PM
This is the code I am having an issue with
04/04/2024 09:27," EDT,",10000.0
I need it like this
04/04/2024 09:27 EDT,10000.0
but can not figure out how to get that format
tagPath = system.tag.read("[e1ccd]Extruder/E1_ExtruderAData_MeltPumpAdapterPressure_PV") today = system.date.format(system.date.now(), "MM/dd/yyyy HH:mm") dataRow = [today," EDT,",tagPath.value] with open(filePath, 'a') as csvfile: writer = csv.writer(csvfile, lineterminator='\n') writer.writerow(dataRow)The line writes to the file like this
04/04/2024 09:27," EDT,",10000.0
I need it like this
04/04/2024 09:27 EDT,10000.0
but can not figure out how to get that format