benilla-re systems structs docs

__expandtime

function · crt · primitive

Address
0x4135f8 · 1007 bytes, up to 0x4139e6
Signature
void __cdecl (char spec, const tm *fields, char **out, uint32_t *left, const char **names)
Meaning
Writes one strftime conversion of the fields; an unknown one writes nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
crt/time#name-and-pattern-conversions
Test
crt::crt_strftime_difftest, crt::crt_strftime_patterns_difftest

Finding: Name and pattern conversions in crt: calendar time

The record holds pointers: seven short and seven long day names, twelve short and twelve long month names, AM, PM, and the patterns M/d/yy, dddd, MMMM dd, yyyy and H:mm:ss. Each conversion writes no more than the room left.

conversionwrites
a, Athe short or long day name of tm_wday
b, Bthe short or long month name of tm_mon
pAM for a tm_hour of 11 or less, else PM
xthe pattern M/d/yy; with # the pattern dddd, MMMM dd, yyyy
Xthe pattern H:mm:ss
cthe x pattern, a space when room is left, and the X pattern
Z, z_tzname[tm_isdst != 0], after ___tzset
%%
any othernothing

The derivation is in the doc.

Callers 2

Callees 4

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