Current Date in LUA?
Discussion in 'Rust Development' started by TheRotAG, Feb 10, 2015.
-
Wulf Community Admin
Code:local function CurrentTime() return time.GetCurrentTime():ToLocalTime():ToString("h:mm tt") end
Code:local timestamp = time.GetUnixTimestamp() local currentDate = tostring(time.GetCurrentTime():ToString("d"))
-
How does timestamp works? I would like to know if if increases by Minute or Hour cuz I tried to calc by seconds and it doesnt seens to work that way...
Gonna use date to autodeactivate VIP privileges on my server. -
Wulf Community Admin