convert linux time to timestamp

pull/145/head
alanbjohnston 4 years ago committed by GitHub
parent e6dbdd1f3b
commit c1f0fa7260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,8 @@ while (True):
altitude = 0
humidity = 0
timestamp = chunks[0] + " " + chunks[1]
time = chunks[0] + " " + chunks[1]
timestamp = datetime.utcfromtimestamp(time).strftime('%Y-%m-%d %H:%M:%S')
print(timestamp)
for i in range(len(chunks)):

Loading…
Cancel
Save

Powered by TurnKey Linux.