Difference between revisions of "Os"
m |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' android | + | <!-- GIDEROSOBJ:os --> |
+ | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
− | === | + | |
− | + | === Description === | |
+ | Operating System Facilities. | ||
+ | |||
{|- | {|- | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Methods === |
− | [[ | + | [[os.clock]] ''returns CPU time used by program in seconds''<br/><!--GIDEROSMTD:os.clock() returns CPU time used by program in seconds--> |
− | [[ | + | [[os.date]] ''returns a string or table containing date and time, "*t" returns a table''<br/><!--GIDEROSMTD:os.date(format,time) returns a string or table containing date and time, "*t" returns a table--> |
− | [[ | + | [[os.difftime]] ''returns number of seconds from time t1 to time t2''<br/><!--GIDEROSMTD:os.difftime(t2,t1) returns number of seconds from time t1 to time t2--> |
− | [[ | + | [[os.execute]] ''executes command using C function system, returns status code''<br/><!--GIDEROSMTD:os.execute(command) executes command using C function system, returns status code--> |
− | [[ | + | [[os.exit]] ''terminates host program with optional code, default is success code''<br/><!--GIDEROSMTD:os.exit(code) terminates host program with optional code, default is success code--> |
− | [[ | + | [[os.getenv]] ''returns value of environment variable varname. nil if not defined''<br/><!--GIDEROSMTD:os.getenv(varname) returns value of environment variable varname. nil if not defined--> |
− | [[ | + | [[os.remove]] ''deletes file with given name, nil if fails''<br/><!--GIDEROSMTD:os.remove(filename) deletes file with given name, nil if fails--> |
− | [[ | + | [[os.rename]] ''renames file oldname to newname, nil if fails''<br/><!--GIDEROSMTD:os.rename(oldname,newname) renames file oldname to newname, nil if fails--> |
− | [[ | + | [[os.setlocale]] ''sets current locale of program, returns name of new locate or nil''<br/><!--GIDEROSMTD:os.setlocale(locale,category) set current locale of program, returns name of new locate or nil--> |
− | [[ | + | [[os.time]] ''returns current time (usually seconds) or time as represented by table''<br/><!--GIDEROSMTD:os.time(table) returns current time (usually seconds) or time as represented by table--> |
− | [[ | + | [[os.timer]] ''returns precise time in seconds relative to some arbitrary point''<br/><!-- GIDEROSMTD:os.timer() returns precise time in seconds relative to some arbitrary point--> |
− | [[ | + | [[os.tmpname]] ''returns a string with a filename for a temporary file (dangerous! tmpfile is better)''<br/><!--GIDEROSMTD:os.tmpname() returns a string with a filename for a temporary file (dangerous! tmpfile is better)--> |
+ | |||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
− | === | + | === Events === |
− | === | + | === Constants === |
|} | |} | ||
+ | |||
+ | {{GIDEROS IMPORTANT LINKS}} |
Latest revision as of 23:30, 22 January 2023
Supported platforms:
Available since: Gideros 2011.6
Description
Operating System Facilities.
Methodsos.clock returns CPU time used by program in seconds |
EventsConstants |