···16161717function getTimeString(time)
1818 local timeTable = getTimeTable(time)
1919- return string.format(\"%02d:%02d:%02d\",timeTable[1],timeTable[2],timeTable[3])
1919+ return string.format("%02d:%02d:%02d",timeTable[1],timeTable[2],timeTable[3])
2020end
212122222323--[[
2424 USAGE
2525 Copy the full script in Library > Start
2626-2626+2727 local timeTable = getTimeTable(system.getTime()) -- return a table with 3 values : {hour, minutes, seconds}
2828- local timeString = getTimeString(system.getTime()) -- return a formated string : \"HH:mm:ss\"
2929-2828+ local timeString = getTimeString(system.getTime()) -- return a formated string : "HH:mm:ss"
2929+3030 you can add a timer every seconds to display the time
3131]]--