# HG changeset patch # User John@Yosemite-PC # Date 1336307415 14400 # Node ID 9aa2dcbbdc8780f3d661197eba84510c6c206ae6 # Parent d3ea0ab1428ddc429dc83adb63199d9b9642c0c7 Detect when an int is really a date and print it that way diff -r d3ea0ab1428d -r 9aa2dcbbdc87 Utility.lua --- a/Utility.lua Thu May 03 09:05:40 2012 -0400 +++ b/Utility.lua Sun May 06 08:30:15 2012 -0400 @@ -5,6 +5,7 @@ local table=table local getmetatable=getmetatable local setmetatable=setmetatable +local _G=_G setfenv(1,bsk) @@ -48,7 +49,11 @@ if( type(v) == "string" ) then print(depth .. i .. " - " .. v) elseif( type(v) == "number" ) then - print(depth .. i .. " - " .. tostring(v)) + if v > 1331000000 and v < 1349000000 then + print(depth .. i .. " - " .. tostring(v) .. " " .. _G.date("%m/%d/%y %H:%M:%S", v)) + else + print(depth .. i .. " - " .. tostring(v)) + end elseif( type(v) == "table" ) then --if v == table then return end print(depth .. tostring(i) .." - ")