READ THE RULES
0 Members and 1 Guest are viewing this topic.
-- The following 2 functions are-- Copyright (c) 2005, plop-- All rights reserved.JulianDate = function(tTime) tTime = tTime or os.date("*t") return os.time({year = tTime.year, month = tTime.month, day = tTime.day, hour = tTime.hour, min = tTime.min, sec = tTime.sec} )endJulianDiff = function(iThen, iNow) return os.difftime( (iNow or JulianDate()) , iThen)end-- End of plop's code
sHare={}LogShare = function(user,data) nIK=user.sNick:lower() if sHare[os.date("%D")] then if sHare[os.date("%D")][nIK] then table.insert (sHare[os.date("%D")][nIK],data) SaveRecords() else sHare[os.date("%D")][nIK]={} table.insert (sHare[os.date("%D")][nIK],data) SaveRecords() end else sHare[os.date("%D")]={} sHare[os.date("%D")][nIK]={} table.insert (sHare[os.date("%D")][nIK],data) SaveRecords() end returnend
sHare = { ["01/03/09"] = { ["pharoh"] = { [1] = "yes man", }, ["allan"] = { [1] = "bedtime stories", [2] = "red line", }, ["cody"] = { [1] = "LOST Se 4", }, },}
This would mean you need to parse that date before you make comparisons.