Skip to content

Instantly share code, notes, and snippets.

@GreenXenith GreenXenith/init.lua Secret
Last active Nov 15, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.