![]() |
info object.time function - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: info object.time function (/showthread.php?tid=2840) |
info object.time function - toujour - 11.09.2020 Hi guys, I'm looking for a solution to find out the update time of an object ( object.time or object.updatetime or ? ) for i, object in ipairs(MyTag) do if object.data == true then String = String .. object.name .. object.TIME end end Where Can I find this information in the object tag ? There is a pdf with this informations ? Regards, Alberto RE: info object.time function - Daniel - 11.09.2020 Like this Code: obj = grp.find('1/1/1') RE: info object.time function - toujour - 11.09.2020 ok, I have the step ! objs = grp.tag('MyTag') for _, obj in ipairs(objs) do Time = os.date('*t', obj.updatetime) log( Time.hour ..':'.. Time.min ) end If I want this log in an email and I want a new row in the same mail for every logs, how can I do ? ( what is the format for the message string ? ) RE: info object.time function - admin - 11.09.2020 See this: https://forum.logicmachine.net/showthread.php?tid=1835 |