benilla-re systems structs docs

WowTime::SetMinuteOfDay

function · unassigned · primitive

Address
0x6424e0 · 25 bytes, up to 0x6424f8
Signature
void __thiscall (WowTime *this, int32_t minutes)
Meaning
Sets the hour and minute to a minute count divided by 60 and its signed remainder
Confidence
verified, proof one
Finding
gametime/overview#time-record-helpers
Test
gametime::set_minute_of_day_difftest

Finding: Time record helpers in gametime: overview

A time record is seven dwords: minute, hour, weekday, day and month from 0, year from 2000, and a two-bit field. 0x642300 sets the first six to −1 and the seventh to 0. 0x6424c0 returns hour·60 + minute, 0 when either is negative. 0x6424e0(n) sets the hour to n / 60 and the minute to the signed remainder. 0x6423c0(days, keepTime) leaves a record with a negative year, month or day unchanged. Otherwise it gives mktime the date at 0:00, or at its hour and minute with keepTime, adds days · 86400 seconds, and 3600 more without keepTime, and writes back localtime's year, month, day and weekday, and its hour and minute with keepTime. 0x642c10 packs a record through WowTime::WowEncodeTime.

The derivation is in the doc.

Callers 6

Callees 0

None by a direct call or jump.

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