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.