···11+[[--
22+ Jericho's time script -- https://github.com/Jericho1060
33+ Display IRL time in game
44+ https://github.com/Jericho1060/DualUniverse/tree/master/TimeScript
55+]]--
66+17summer_time = true --export
2839function getTimeTable(time)
···1117 local timeTable = getTimeTable(time)
1218 return string.format("%02d:%02d:%02d",timeTable[1],timeTable[2],timeTable[3])
1319end
2020+2121+2222+--[[
2323+ USAGE
2424+ Copy the full script in Library > Start
2525+2626+ local timeTable = getTimeTable(system.getTime()) -- return a table with 3 values : {hour, minutes, seconds}
2727+ local timeString = getTimeString(system.getTime()) -- return a formated string : "HH:mm:ss"
2828+2929+ you can add a timer every seconds to display the time
3030+]]--