Lua:Hey JS, what if my skin is already working and set up using windows filetime (january 1 1601) and I want to parse that timestamp to lua as a global variable? I want to call "[&TimeMeasure:timestamp]".
For example:That won't workCode:
timeMS = SKIN:GetMeasure('Time') timestamp = tonumber(timeMS:GetValue())
Code:
function ConvertTime(n, To)local Formats = {Unix = -1,Windows = 1}return Formats[To] and n + 11644473600 * Formats[To] or nilend
Statistics: Posted by jsmorley — Yesterday, 6:30 pm