benilla-re systems structs docs

ScriptDate

function · ui · primitive

Address
0x7033a0 · 411 bytes, up to 0x70353a
Signature
int __fastcall (lua_State *L)
Meaning
Serves date: formats a time as text or as a table, UTC when the format starts with !
Confidence
verified, proof two
Finding
ui/luabase#date

Finding: Date in ui: the Lua base library

date([format [, time]]) takes %c and −1 as defaults, uses the current C time for −1, and breaks the time down as UTC when the format starts with !, local otherwise. The format *t answers a table of sec, min, hour, day, month (+1), year (+1900), wday (+1), yday (+1) and isdst; any other format goes to strftime with a 256-byte buffer, and a 0 result raises `date' format too long. An empty result is also 0, so date("") raises it too.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 13

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