[READ-ONLY] Mirror of https://github.com/thoda-dev/DU-Industry-HUD. A simple HUD for monitoring and managing industry in Dual Universe
dual-universe lua
0

Configure Feed

Select the types of activity you want to include in your feed.

Update start_3.lua

Thomas (Dec 29, 2020, 6:36 PM +0100) 68754605 ce68882b

+4 -4
+4 -4
Master program/source/library/start_3.lua
··· 16 16 17 17 function getTimeString(time) 18 18 local timeTable = getTimeTable(time) 19 - return string.format(\"%02d:%02d:%02d\",timeTable[1],timeTable[2],timeTable[3]) 19 + return string.format("%02d:%02d:%02d",timeTable[1],timeTable[2],timeTable[3]) 20 20 end 21 21 22 22 23 23 --[[ 24 24 USAGE 25 25 Copy the full script in Library > Start 26 - 26 + 27 27 local timeTable = getTimeTable(system.getTime()) -- return a table with 3 values : {hour, minutes, seconds} 28 - local timeString = getTimeString(system.getTime()) -- return a formated string : \"HH:mm:ss\" 29 - 28 + local timeString = getTimeString(system.getTime()) -- return a formated string : "HH:mm:ss" 29 + 30 30 you can add a timer every seconds to display the time 31 31 ]]--