changeset 104:9aa2dcbbdc87

Detect when an int is really a date and print it that way
author John@Yosemite-PC
date Sun, 06 May 2012 08:30:15 -0400
parents d3ea0ab1428d
children c6c748a5823b
files Utility.lua
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) .." - ")