xhookLua
Game

os

Time and date only. No execute, remove, getenv or exit.

Functions

os.time

os.time([t]) -> integer
NameTypeDescription
toptionaltable{year, month, day [, hour=12, min, sec]}, local time.

Seconds since 1970, UTC.

os.clock

os.clock() -> number

High-resolution seconds since the first call.

os.date

os.date([format] [, t]) -> string | table
NameTypeDescription
formatoptionalstring"*t" gives a table; leading ! uses UTC. Default "%c".
toptionalintegerTime to format. Default now.

Formats a time.

Supports %a %A %b %B %c %d %D %e %F %H %I %j %m %M %n %p %S %t %T %u %w %x %X %y %Y %%.

os.difftime

os.difftime(t2 [, t1]) -> number
NameTypeDescription
t2integer
t1optionalintegerDefault 0.

t2 minus t1, in seconds.

os ยท Lua API ยท xhook