Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fs = require("filesystem")
- local function getTime()
- local f = io.open("/tmp/time", "w")
- f:write("time")
- f:close()
- local timestamp = fs.lastModified("/tmp/time") / 1000 + 3600 * 3 --Умножаем на часовой пояс, в моём случае GMT +3
- return os.date("%d.%m.%Y %H:%M:%S", timestamp) --Реальное время в формате День.Месяц.Год Час:Минута:Секунда
- end
- print(getTime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement