__expandtime
function · crt · primitive
- Address
0x4135f8· 1007 bytes, up to0x4139e6- 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.
| conversion | writes |
|---|---|
a, A | the short or long day name of tm_wday |
b, B | the short or long month name of tm_mon |
p | AM for a tm_hour of 11 or less, else PM |
x | the pattern M/d/yy; with # the pattern dddd, MMMM dd, yyyy |
X | the pattern H:mm:ss |
c | the x pattern, a space when room is left, and the X pattern |
Z, z | _tzname[tm_isdst != 0], after ___tzset |
% | % |
| any other | nothing |
The derivation is in the doc.
Callers 2
- _Strftime crt
- __store_winword crt
Callees 4
- __store_str crt
- __store_num crt
- __store_winword crt
- ___tzset crt
Calls and jumps by a bare address, from tables/calls.tsv.