13 lines
406 B
Lua
Raw Normal View History

-- LUALOCALS < ---------------------------------------------------------
local math, tonumber
= math, tonumber
local math_floor
= math.floor
-- LUALOCALS > ---------------------------------------------------------
local stamp = tonumber("$Format:%at$")
2019-02-04 20:15:33 -05:00
if not stamp then return end
stamp = math_floor((stamp - 1540612800) / 60)
stamp = ("00000000" .. stamp):sub(-8)
2019-02-04 20:15:33 -05:00
return stamp .. "-$Format:%h$"