10 lines
222 B
Text
10 lines
222 B
Text
-- Get previous write time.
|
|
local t = io.writetime("input.txt")
|
|
print(os.date("%c", t))
|
|
|
|
-- Add an hour.
|
|
io.writetime("input.txt", t + 3600)
|
|
|
|
-- Retrieve the new time.
|
|
t = io.writetime("input.txt")
|
|
print(os.date("%c", t))
|