os

The os API allows interacting with the current computer.

loadAPI(path)
pullEvent(filter)
pullEventRaw(filter)
version()
run(env, path, ...)
queueEvent(name)
startTimer(timer)
cancelTimer(token)
setAlarm(time)
cancelAlarm(token)
shutdown()
reboot()
getComputerID()
computerID()
getComputerLabel()
computerLabel()
setComputerLabel([label])Set the label of this computer.
clock()
time()
day([args])
epoch([args])
date([formatA[, timeA]])
loadAPI(path)Source

Parameters

  1. path
pullEvent(filter)Source

Parameters

  1. filter
pullEventRaw(filter)Source

Parameters

  1. filter
version()Source
run(env, path, ...)Source

Parameters

  1. env
  2. path
  3. ...
queueEvent(name)Source

Parameters

  1. name string
startTimer(timer)Source

Parameters

  1. timer number

Returns

  1. number
cancelTimer(token)Source

Parameters

  1. token number
setAlarm(time)Source

Parameters

  1. time number

Returns

  1. number
cancelAlarm(token)Source

Parameters

  1. token number
shutdown()Source
reboot()Source
getComputerID()Source

Returns

  1. number
computerID()Source

Returns

  1. number
getComputerLabel()Source

Returns

  1. any...
computerLabel()Source

Returns

  1. any...
setComputerLabel([label])Source

Set the label of this computer.

Parameters

  1. label? string The new label. May be nil in order to clear it.
clock()Source

Returns

  1. number
time()Source

Returns

  1. any
day([args])Source

Parameters

  1. args? string

Returns

  1. number
epoch([args])Source

Parameters

  1. args? string

Returns

  1. number
date([formatA[, timeA]])Source

Parameters

  1. formatA? string
  2. timeA? number

Returns

  1. any