Juste pour vite sauver comme backup de travail
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
-- Scripts pour régler l'horloge quand on est connecté en WIFI
|
||||
|
||||
print("\n set_time.lua zf181211.0010 \n")
|
||||
print("\n set_time.lua zf181212.0841 \n")
|
||||
|
||||
--f= "wifi_ap_stop.lua" if file.exists(f) then dofile(f) end
|
||||
--f= "wifi_cli_conf.lua" if file.exists(f) then dofile(f) end
|
||||
@@ -16,7 +16,7 @@ function set_time()
|
||||
end
|
||||
|
||||
function ztime()
|
||||
tm = rtctime.epoch2cal(rtctime.get())
|
||||
tm = rtctime.epoch2cal(rtctime.get()+3600)
|
||||
print(string.format("%04d/%02d/%02d %02d:%02d:%02d", tm["year"], tm["mon"], tm["day"], tm["hour"], tm["min"], tm["sec"]))
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user