Difference between revisions of "Os"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<languages />
 
<!-- GIDEROSOBJ:os -->
 
<!-- GIDEROSOBJ:os -->
 
'''<translate>Supported platforms</translate>:''' [[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/>
 
'''<translate>Supported platforms</translate>:''' [[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/>

Revision as of 09:58, 3 September 2018


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2011.6

Description

Operating System Facilities

Methods

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
os.difftime returns number of seconds from time t1 to time t2
os.execute executes command using C function system, returns status code
os.exit terminates host program with optional code, default is success code
os.getenv returns value of environment variable varname. nil if not defined
os.remove deletes file with given name, nil if fails
os.rename renames file oldname to newname, nil if fails
os.setlocale 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
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-

Events

Constants