File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Simple GPS datalogging demonstration.
2
- # This example uses the GPS library and to read raw NMEA sentences
2
+ # This example uses the GPS library and to read raw NMEA sentences
3
3
# over I2C or UART from the GPS unit and dumps them to a file on an SD card
4
4
# (recommended), microcontroller internal storage (be careful as only a few
5
5
# kilobytes are available), or to a filesystem.
Original file line number Diff line number Diff line change 52
52
53
53
#Time & date from time.localtime() function
54
54
local_time = time .localtime ()
55
-
55
+
56
56
print ("Local time: {:02}/{:02}/{} {:02}:{:02}:{:02}" .format (
57
57
local_time .tm_mon ,
58
58
local_time .tm_mday ,
59
59
local_time .tm_year ,
60
60
local_time .tm_hour ,
61
61
local_time .tm_min ,
62
62
local_time .tm_sec ))
63
-
You can’t perform that action at this time.
0 commit comments