We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489c9f4 commit 285a06cCopy full SHA for 285a06c
datetime.py
@@ -4,14 +4,14 @@
4
import time
5
from Adafruit_Thermal import *
6
7
-i_feed = 4
+i_feed = 3
8
f_pause = 1.0
9
10
printer = Adafruit_Thermal("/dev/serial0", 19200, timeout=5)
11
12
datestamp = time.strftime("%Y-%m-%d", time.gmtime())
13
print ("Date in preferred format:", datestamp)
14
-timestamp = time.strftime("%H:%M:%S", time.gmtime())
+timestamp = 'T' + time.strftime("%H:%M:%S", time.gmtime()) + 'Z'
15
print ("Time in preferred format:", timestamp)
16
17
# Give a little room at the top
0 commit comments