This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

info object.time function
#1
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
KNX Advanced Partner + Tutor
Reply
#2
Like this
Code:
obj = grp.find('1/1/1')
log(obj.updatetime)
------------------------------
Ctrl+F5
Reply
#3
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 ? )
KNX Advanced Partner + Tutor
Reply
#4
See this: https://forum.logicmachine.net/showthread.php?tid=1835
Reply


Forum Jump: