benilla-re systems structs docs

s_formatDurationDhms

global · ui

Address
0x8449f8 · 16 bytes, up to 0x844a07
Type
const char[16]
Meaning
Holds the string "%dd %dh %dm %ds"
Confidence
verified, proof one
Finding
ui/instances#duration-text

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.