01.11.2022, 13:44
This will add a "datetime" key to each table element. You can change the format string as needed. See this for possible formats: https://man7.org/linux/man-pages/man3/strftime.3.html
Code:
for _, entry in ipairs(spot) do
entry.datetime = os.date('%c', entry.time)
end