API Reference

OS

Standard Luau os library for clock, date, difftime, and time.

Available Functions

FunctionDescription
os.clockReturns elapsed time in seconds since an arbitrary baseline with sub microsecond precision.
os.dateFormats the given string with date/time information based on the given time.
os.difftimeReturns the number of seconds from one time to another.
os.timeReturns how many seconds have passed since the Unix epoch (1 January 1970, 00:00:00) under current UTC time.