benilla-re systems structs docs

ScriptTime

function · ui · primitive

Address
0x7035a0 · 269 bytes, up to 0x7036ac
Signature
int __fastcall (lua_State *L)
Meaning
Serves time: answers the current time, or mktime of a table of date fields
Confidence
verified, proof two
Finding
ui/luabase#time-from-a-table

Finding: Time from a table in ui: the Lua base library

time() returns the current C time. time(t) needs a table with sec and min (default 0), hour (default 12), and day, month and year (required: field `%s' missing in date table), and reads isdst as a boolean. month is reduced by 1 and year by 1900, mktime runs on them, and the answer is the number, or nil for −1. Each field is read with lua_gettable (0x6f3a40, so __index is honoured), and a field that is not a number or numeric string (lua_isnumber, 0x70370f) counts as absent; isdst is lua_toboolean, so it is 0 or 1, never −1.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

Calls and jumps by a bare address, from tables/calls.tsv.