01.09.2021, 09:13
Like this, you need to specify the min/max log time as UNIX timestamp:
Code:
id = buslib.encodega('1/1/1')
mintime = os.time() - 3600 * 2
maxtime = os.time() - 3600
db:query('DELETE FROM objectlog WHERE address=? AND logtime BETWEEN ? AND ?', id, mintime, maxtime)