benilla-re systems structs docs

WowTime::WowDecodeTime2

function · base · primitive

Address
0x642b30 · 211 bytes, up to 0x642c02
Signature
void __fastcall (uint32_t packed, int32_t *minute, int32_t *hour, int32_t *weekday, int32_t *day, int32_t *month, int32_t *year, int32_t *extra)
Meaning
Splits a packed date into minute, hour, weekday, day, month, year and a two-bit field, with -1 for all ones
Confidence
verified, proof two
Name from
the community database (idb)
Finding
gametime/messages#packed-date-fields
Test
gametime::gametime_642c30_decode_time

Finding: Packed date fields in gametime: messages

WowTime::WowDecodeTime (0x642c30, the packed dword in ecx, a 28-byte record in edx) calls 0x642b30, which stores seven int32 fields: minute (bits 0 to 5) at +0, hour (6 to 10) at +4, weekday (11 to 13) at +8, day (14 to 19) at +0xc, month (20 to 23) at +0x10, year (24 to 28) at +0x14 and a two-bit field (29 and 30) at +0x18. A field whose bits are all ones is stored as −1, and bit 31 is ignored. The day field holds the day − 1, the month field the month − 1 and the year field the year − 2000. No field is range-checked: a decoded hour reaches 30 and a minute 62.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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