You can use built-in library “os” for this. The exact function you would like to use is os.time("%X"), returning “23:48:10” for an example. You can look at the details at Lua.org searching for Date and Time.