Set the correct Date at creating a nwe File Document
Posted: Fri Nov 25, 2016 3:09 pm
Hi Group,
I would like to know how is possible set the correct date when i create a new file , in order to store values that i'm sensing with a sensor.
#========================================
archivo=open('/sd/archivo.txt','w')
archivo.write('{},{},{},{},{},{},{}\n'.format(t,xm,ym,zm,xg,yg,zg))
#========================================
Which part of the code must I have set the time or date characteristic?
Is it possible to preserve on memory the correct time?, and the next time i rund code ,it sets the correct datetime?
I would like to know how is possible set the correct date when i create a new file , in order to store values that i'm sensing with a sensor.
#========================================
archivo=open('/sd/archivo.txt','w')
archivo.write('{},{},{},{},{},{},{}\n'.format(t,xm,ym,zm,xg,yg,zg))
#========================================
Which part of the code must I have set the time or date characteristic?
Is it possible to preserve on memory the correct time?, and the next time i rund code ,it sets the correct datetime?