FormatDurationDhms
function · ui · primitive
- Address
0x49e9d0· 147 bytes, up to0x49ea62- Signature
void __fastcall (char *buf, uint32_t size, int32_t seconds)- Meaning
- Formats seconds as days, hours, minutes and seconds, each division truncating
- Confidence
- verified, proof one
- Finding
- ui/instances#duration-text
- Test
ui::instances_format_duration
Finding: Duration text in ui: instance messages
0x49e9d0(buf, size, seconds) writes %dd %dh %dm %ds with days s/86400, hours
(s − 86400d)/3600, minutes (s − 3600(24d + h))/60 and seconds s mod 60, every division signed
and truncating toward zero, so a negative input gives negative fields.
The derivation is in the doc.
Callers 2
Callees 1
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.