-
-
Save GreenXenith/b44b8caca5b0dbd0cee31f5995cd4647 to your computer and use it in GitHub Desktop.
time stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local year = tonumber(os.date("%Y")) | |
local month = tonumber(os.date("%m")) | |
local day = tonumber(os.date("%d")) | |
local second = tonumber(os.date("%S")) | |
local minute = tonumber(os.date("%M")) | |
local hour = tonumber(os.date("%H")) | |
local nextmin | |
if minute > 1 then | |
if second > 40 then | |
nextmin = minute + 1 | |
elseif second < 40 then | |
nextmin = minute | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment