You are probably looking for:
Lua Code:
os.date("%X", timestamp) -- returns formatted time string
I'm pretty sure if you plug in a timestamp difference, you'll still get what you are looking for. You can read more about it
here.
There are ways to explicitly format different aspects of the string (%X is a standard time format)