add date.now timestamp to csv file code example
Example: add timestamp csv python
import time
for val in data:
now = time.strftime('%d-%m-%Y %H:%M:%S')
writer.writerow([now, val])
import time
for val in data:
now = time.strftime('%d-%m-%Y %H:%M:%S')
writer.writerow([now, val])