Difference between revisions of "Os"

From GiderosMobile
Line 2: Line 2:
 
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Operating System Facilities</translate>
 
<translate>Operating System Facilities</translate>
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== Methods ===
+
=== <translate>Methods</translate> ===
 
[[Special:MyLanguage/os.clock|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/>
 
[[Special:MyLanguage/os.date|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/>
Line 20: Line 20:
 
[[Special:MyLanguage/os.tmpname|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 ===
+
=== <translate>Events</translate> ===
=== Constants ===
+
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 07:28, 24 August 2018

Supported platforms: android, ios, mac, pc
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