Skip to content

Instantly share code, notes, and snippets.

@GreenXenith
Last active November 15, 2017 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GreenXenith/b44b8caca5b0dbd0cee31f5995cd4647 to your computer and use it in GitHub Desktop.
Save GreenXenith/b44b8caca5b0dbd0cee31f5995cd4647 to your computer and use it in GitHub Desktop.
time stuff
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