WowTime::FormatTime
function · unassigned
- Address
0x642c80· 397 bytes, up to0x642e0c- Signature
char * __fastcall (const WowTime *time, char *buffer, uint32_t size)- Meaning
- Formats a time as month/day/year (weekday) hour:minute, or Not Set, into a buffer
- 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 4
- 0x642c50 unassigned
- GameTimeSync gametime
- OnGameTimeSet unassigned
- ReceiveServerTime unassigned
Callees 2
- PackWowTime unassigned
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.