Lua.VM.Stdlib.Os (Lua v1.0.0-rc.1)
View SourceLua 5.3 os standard library (sandbox-safe subset).
Provides time and date facilities plus a handful of environment helpers. Functions that would touch the filesystem or spawn subprocesses are intentionally absent or stubbed, since the VM runs in an embedded sandbox.
Functions
os.time([table])- Epoch seconds, optionally from a date table.os.clock()- Approximate CPU time used, in seconds.os.difftime(t2, t1)- Difference in seconds between two times.os.date([format [, time]])- Formats a time as a string or table.os.getenv(name)- Value of an environment variable, or nil.os.setlocale([locale [, category]])- No-op returning "C".os.tmpname()- A name usable for a temporary file.os.exit([code [, close]])- Raises to unwind; sandbox cannot exit.