Difference between revisions of "Os"
Line 7: | Line 7: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Methods === | === Methods === | ||
− | [[os.clock]] ''<translate>returns CPU time used by program in seconds</translate>''<br/> | + | [[Special:MyLanguage/os.clock|os.clock]] ''<translate>returns CPU time used by program in seconds</translate>''<br/> |
− | [[os.date]] ''<translate>returns a string or table containing date and time, "*t" returns a table</translate>''<br/> | + | [[Special:MyLanguage/os.date|os.date]] ''<translate>returns a string or table containing date and time, "*t" returns a table</translate>''<br/> |
− | [[os.difftime]] ''<translate>returns number of seconds from time t1 to time t2</translate>''<br/> | + | [[Special:MyLanguage/os.difftime|os.difftime]] ''<translate>returns number of seconds from time t1 to time t2</translate>''<br/> |
− | [[os.execute]] ''<translate>executes command using C function system, returns status code</translate>''<br/> | + | [[Special:MyLanguage/os.execute|os.execute]] ''<translate>executes command using C function system, returns status code</translate>''<br/> |
− | [[os.exit]] ''<translate>terminates host program with optional code, default is success code</translate>''<br/> | + | [[Special:MyLanguage/os.exit|os.exit]] ''<translate>terminates host program with optional code, default is success code</translate>''<br/> |
− | [[os.getenv]] ''<translate>returns value of environment variable varname. nil if not defined</translate>''<br/> | + | [[Special:MyLanguage/os.getenv|os.getenv]] ''<translate>returns value of environment variable varname. nil if not defined</translate>''<br/> |
− | [[os.remove]] ''<translate>deletes file with given name, nil if fails</translate>''<br/> | + | [[Special:MyLanguage/os.remove|os.remove]] ''<translate>deletes file with given name, nil if fails</translate>''<br/> |
− | [[os.rename]] ''<translate>renames file oldname to newname, nil if fails</translate>''<br/> | + | [[Special:MyLanguage/os.rename|os.rename]] ''<translate>renames file oldname to newname, nil if fails</translate>''<br/> |
− | [[os.setlocale]] ''<translate>set current locale of program, returns name of new locate or nil</translate>''<br/> | + | [[Special:MyLanguage/os.setlocale|os.setlocale]] ''<translate>set current locale of program, returns name of new locate or nil</translate>''<br/> |
− | [[os.time]] ''<translate>returns current time(usually seconds- or time as represented by table</translate>''<br/> | + | [[Special:MyLanguage/os.time|os.time]] ''<translate>returns current time(usually seconds- or time as represented by table</translate>''<br/> |
− | [[os.timer]] ''<translate>returns precise time in seconds relative to some arbitrary point</translate>''<br/> | + | [[Special:MyLanguage/os.timer|os.timer]] ''<translate>returns precise time in seconds relative to some arbitrary point</translate>''<br/> |
− | [[os.tmpname]] ''<translate>returns a string with a filename for a temporary file(dangerous! tmpfile is better-</translate>''<br/> | + | [[Special:MyLanguage/os.tmpname|os.tmpname]] ''<translate>returns a string with a filename for a temporary file(dangerous! tmpfile is better-</translate>''<br/> |
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 16:34, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
Operating System Facilities
Methodsos.clock returns CPU time used by program in seconds |
EventsConstants |