You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
257 B
14 lines
257 B
-- Upvalues
|
|
local date = date
|
|
local time = time
|
|
|
|
-- Locals
|
|
local Time = {}
|
|
|
|
function Time.GetDate(delta)
|
|
local dt = date("*t", time() - (delta or 0))
|
|
return dt.year * 10000 + dt.month * 100 + dt.day
|
|
end
|
|
|
|
Rarity.Utils.Time = Time
|
|
return Time
|
|
|