12.04.2020, 12:12
This will convert table value to a string (for example: 1d 06h 42m).
Code:
if type(value) == 'table' then
value = string.format('%dd %02dh %02dm', value.days or 0, value.hours or 0, value.minutes or 0)
end