if my list looks like this:
['2009-10-16', '21:06:34', 'kitchen sensor', 'ON']
['2009-10-16', '21:13:22', 'kitchen sensor', 'OFF']
so item[1] = 21:06:34
and listaDivisa[j][1] = 21:13:22
in this case, and my code looks like this:
t1 = datetime.strptime(item[1], '%H:%M:%S').time
t2 = datetime.strptime(listaDivisa[j][1], '%H:%M:%S').time
timedelta = (t2 - t1).seconds
why i got this error and how do i solve it: TypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and 'builtin_function_or_method'
thank you!