I found this script in the Roblox forum:
local TIME = tick()
local secs = TIME % 60
local mins = math.floor((TIME % 3600) / 60)
local hrs = math.floor((TIME % (3600*24) / (3600*24)) )
local TIMESTR = string.format("d:d:d", hrs, mins, secs)
print(TIMESTR)
But the hour value is always 00. Can anyone help me fix that or tell me a better way to get system time?
Also string.format("d:d:d", hrs, mins, secs) should be 02d. It gets changed to d when I save edits or post the question
