What does the function os.time do?

I’ve seen this function many times and I still don’t know how it works, and what it does.

does anyone know what os.time does and what “os” is?

OS = Operating System
OS.time gets the time from the operating system (in seconds) from january 1st, 1970 (unix epoch time)


os is a library used to manipulate time. You can probably find videos and articles on how to use it. os.time returns how many seconds have past since January 1, 1970 (It’ll be a pretty large number). Once you learn how to manipulate time and date, this function will become useful to you. One practical example of this function is if you were making a daily reward system.