2019-01-28 23:13:21 -05:00

16 lines
447 B
Lua

-- LUALOCALS < ---------------------------------------------------------
local math, tonumber
= math, tonumber
local math_floor
= math.floor
-- LUALOCALS > ---------------------------------------------------------
local stamp = tonumber("$Format:%at$")
if not stamp then
return "DEVELOPMENT VERSION"
end
stamp = math_floor((stamp - 1540612800) / 60)
stamp = ("00000000" .. stamp):sub(-8)
return "Version " .. stamp .. .. "-$Format:%h$"