Update getTime.lua
This commit is contained in:
parent
b7f13d94a0
commit
61dd93b280
1 changed files with 7 additions and 3 deletions
10
getTime.lua
10
getTime.lua
|
@ -10,8 +10,12 @@ while true do
|
||||||
f:write(result)
|
f:write(result)
|
||||||
f:close()
|
f:close()
|
||||||
f = io.open("time.txt", "r")
|
f = io.open("time.txt", "r")
|
||||||
f:seek("set", 31)
|
f:seek("set", 30)
|
||||||
local time = f:read(16)
|
local date = f:read(10)
|
||||||
|
f:seek("set", 41)
|
||||||
|
local hour = tonumber(f:read(2)) + 3
|
||||||
|
f:seek("set", 44)
|
||||||
|
local min = f:read(2)
|
||||||
f:close()
|
f:close()
|
||||||
print(time)
|
print(date.." "..hour..":"..min)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue