How can I get the current Unix time from a script? Like this:
local unixTime = os.time()
That returns the seconds since the Unix Epoch and you can format that time using os.date()
. I would highly recommend reading the OS API Reference.
8 Likes