problem with Time object
Posted: Tuesday 12 September 2017 13:37
Hi all,
I'm trying to create a Time object in order to know the difference between a fixed time and the actual time.
I'm following this guide: https://www.domoticz.com/wiki/DzVents:_ ... ime_object but I have a problem.
My code:
The error in console:
Could you help me please?
Thanks.
I'm trying to create a Time object in order to know the difference between a fixed time and the actual time.
I'm following this guide: https://www.domoticz.com/wiki/DzVents:_ ... ime_object but I have a problem.
My code:
Code: Select all
local Time = require('Time')
local t = Time('2016-12-12 07:35:00')
print('t.minutesAgo(): '..t.minutesAgo()) -- difference from 'now' in minutesCode: Select all
attempt to call field 'minutesAgo' (a number value)Thanks.