os

Show Deprecated

This library currently serves the purpose of providing information about the system time under the UTC format. It has been heavily sandboxed from the standard Lua os library and does not allow you to perform any system-altering operations.

Summary

Functions

  • Returns elapsed time in seconds since an arbitrary baseline with sub-microsecond precision.

  • date(formatString : string,time : number):Dictionary

    Formats the given string with date/time information based on the given time.

  • Returns the number of seconds from one time to another.

  • time(time : table):number

    Returns how many seconds have passed since the Unix epoch (1 January 1970, 00:00:00) under current UTC time.

Functions

clock

Returns

Parameters

formatString: string
time: number

Returns

difftime

Parameters

t2: number
t1: number

Returns

time

Parameters

time: table
Default Value: UTC time

Returns