WowTime::GetDayNumber
function · unassigned
- Address
0x642320· 130 bytes, up to0x6423a1- Signature
int32_t __thiscall (const WowTime *this)- Meaning
- Returns mktime of the date divided by 86,400, or 0 when its year, month or day is negative
- Confidence
- verified, proof one
- Finding
- gametime/overview#day-number-and-time-text
Finding: Day number and time text in gametime: overview
WowTime::GetDayNumber (0x642320) returns 0 when the year, month or day field is negative.
Otherwise it builds a tm with day day + 1, month month, year year mod 100 + 100, daylight
saving −1 and every other field 0, and returns (mktime(tm) + 0x6423b0()) / 86400, truncated
toward zero; 0x6423b0 returns 0. WowTime::FormatTime(time, buffer, size) (0x642c80)
writes Not Set when 0x642c10 gives 0 for the time, else %s/%s/%s (%s) %s:%s of month + 1,
day + 1, year + 2000, the weekday's Sun to Sat (Any when negative), hour and the minute as
two digits; any other negative field prints A. It returns buffer.
The derivation is in the doc.
Callers 3
- StampLightState ui
- GameTimeSync gametime
- OnGameTimeSet unassigned
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.