local displayseconds = 0 local displayminutes = 0 local displayhours = 0 function update(dt) displayhours = string.format("%02d", math.floor(ac.getSim().timeHours)%24) displayminutes = string.format("%02d", math.floor(ac.getSim().timeMinutes)%60) displayseconds = string.format("%02d", math.floor(ac.getSim().timeSeconds)%60) display.text{ pos=vec2(80 ,-0) , letter=vec2(27, 150), text=displayhours, font="digital_big", spacing = -0, color = rgbm(.50, .50, .25, 1) } display.text{ pos=vec2(120,0), letter=vec2(35, 160), text=":", font="digital_big", spacing =-4, color = rgbm(.50, .50, .25, 1) } display.text{ pos=vec2(140,-0) , letter=vec2(27, 150), text=displayminutes, font="digital_big", spacing = -0, color = rgbm(.50, .50, .25, 1) } display.text{ pos=vec2(180,0), letter=vec2(35, 160), text=":", font="digital_big", spacing =-4, color = rgbm(.50, .50, .25, 1) } display.text{ pos=vec2(200,-0) , letter=vec2(27, 150), text=displayseconds, font="digital_big", spacing = -0, color = rgbm(.50, .50, .25, 1) } end