Anonymous

Not logged in

  • British English
  • Log in
GiderosMobile

Os

From GiderosMobile

Namespaces

  • Page
  • Discussion

More

  • More

Page actions

  • Read
  • View source
  • History
Revision as of 13:19, 23 August 2018 by Hgy29 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6

Description

Operating System Facilities

Methods

os.clock Template:Returns CPU time used by program in seconds
os.date Template:Returns a string or table containing date and time, "*t" returns a table
os.difftime Template:Returns number of seconds from time t1 to time t2
os.execute Template:Executes command using C function system, returns status code
os.exit Template:Terminates host program with optional code, default is success code
os.getenv Template:Returns value of environment variable varname. nil if not defined
os.remove Template:Deletes file with given name, nil if fails
os.rename Template:Renames file oldname to newname, nil if fails
os.setlocale Template:Set current locale of program, returns name of new locate or nil
os.time Template:Returns current time(usually seconds- or time as represented by table
os.timer Template:Returns precise time in seconds relative to some arbitrary point
os.tmpname Template:Returns a string with a filename for a temporary file(dangerous! tmpfile is better-

Events

Constants

Retrieved from "https://wiki.gideros.rocks/index.php?title=Os&oldid=5264"

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

    Lua API
    Main API
    Plugins

    Wiki tools

    Wiki tools

    • Special pages

    Page tools

    Page tools

      User page tools

        More

        • What links here
        • Related changes
        • Printable version
        • Permanent link
        • Page information
        • Page logs
        • Powered by MediaWiki
        • This page was last modified on 23 August 2018, at 13:19.
        • Privacy policy
        • About GiderosMobile
        • Disclaimers