Tables
lua_engine
Enables work with the lua engine
Functions
run(disk_id, path, permission)Creates a new execution context and runs the specified script in itpermission- must be equal to or less than the values of the current one.
power_manager
Provides a PC power supply functionality permission must be equal to the system one (2^32-1)
- shutdown()
Shutdown
- reboot()
Reboot
datetime
This table provides date and time functionality
Methods
is_timespan(table)Returnstrue, if the table istimespan tableget_current_time()Returnsdatetime tablecontaining current timefrom_unix_secs(unix_seconds)Returnsdatetime tablefrom_unix_ms(unix_milliseconds)Returnsdatetime tableto_unix_ms(datetime_table)Returns time in UNIXto_unix_secs(datetime_table)Returns time in UNIX-
sub(timespan/datetime, timespan/datetime)(subtract) Returnstimespan tableordatetime table.A list of valid arguments and what they will return: - timespan and timespan => timespan - datetime and timespan => datetime - datetime and datetime => timespan -
sum(timespan/datetime, timespan/datetime)Returnstimespan tableordatetime table.A list of valid arguments and what they will return: - timespan and timespan => timespan - datetime and timespan => datetime -
div(timespan/datetime, timespan/datetime)(divide) Returnstimespan tableordatetime table.A list of valid arguments and what they will return: - timespan and timespan => timespan
datetime table keys
microseconds- intmilliseconds- intsecond- intminute- inthour- intday- intday_of_week- intday_of_year- intmonth- intyear- int
timespan table keys
microseconds- intmilliseconds- intseconds- intminutes- inthours- intdays- inttotal_seconds- floattotal_minutes- floattotal_hours- floattotal_days- floattotal_microseconds- floattotal_milliseconds- float
Global functions
Wait(ms)Get_current_permission()Returnspermissionof the current execution context