Lua's built in os library.
More...
|
| static | clock () |
| | returns CPU time used by program in seconds More...
|
| |
| static | date ([format[, time]]) |
| | returns a string or table containing date and time, "*t" returns a table More...
|
| |
| static | difftime (t2, t1) |
| | returns number of seconds from time t1 to time t2 More...
|
| |
| static | execute (command) |
| | executes command using C function system, returns status code More...
|
| |
| static | exit ([code]) |
| | terminates host program with optional code, default is success code More...
|
| |
| static | getenv (varname) |
| | returns value of environment variable varname. nil if not defined More...
|
| |
| static | remove (filename) |
| | deletes file with given name, nil if fails More...
|
| |
| static | rename (oldname, newname) |
| | renames file oldname to newname, nil if fails More...
|
| |
| static | setlocale (locale[, category]) |
| | set current locale of program, returns name of new locate or nil More...
|
| |
| static | time ([table]) |
| | returns current time (usually seconds) or time as represented by table More...
|
| |
| static | tmpname () |
| | returns a string with a filename for a temporary file (dangerous! tmpfile is better) More...
|
| |
Lua's built in os library.
returns CPU time used by program in seconds
| static os::date |
( |
[format[, time] ] |
| ) |
|
|
static |
returns a string or table containing date and time, "*t" returns a table
| static os::difftime |
( |
t2 |
, |
|
|
t1 |
|
|
) |
| |
|
static |
returns number of seconds from time t1 to time t2
| static os::execute |
( |
command |
| ) |
|
|
static |
executes command using C function system, returns status code
terminates host program with optional code, default is success code
| static os::getenv |
( |
varname |
| ) |
|
|
static |
returns value of environment variable varname. nil if not defined
| static os::remove |
( |
filename |
| ) |
|
|
static |
deletes file with given name, nil if fails
| static os::rename |
( |
oldname |
, |
|
|
newname |
|
|
) |
| |
|
static |
renames file oldname to newname, nil if fails
| static os::setlocale |
( |
locale |
[, category] | ) |
|
|
static |
set current locale of program, returns name of new locate or nil
returns current time (usually seconds) or time as represented by table
returns a string with a filename for a temporary file (dangerous! tmpfile is better)
The documentation for this class was generated from the following file: