_days
global · crt
- Address
0x832834· 52 bytes, up to0x832867- Type
int32_t[13]- Meaning
- Holds the days before each month less one in another year, from -1 to 364; nothing writes it
- Confidence
- verified, proof one
- Finding
- crt/time#breaking-a-time-down-in-utc
Finding: Breaking a time down in UTC in crt: calendar time
gmtime(&t) answers null for a negative time. Otherwise it fills the calling thread's 36-byte
buffer, allocated on first use: the year from blocks of 1461 days from 1970, whose third year is
the one of 366 days; tm_yday from 0; the month as the last whose entry in the days-before-month
table, _lpdays in that year and _days in the others, is below tm_yday; tm_mday as
tm_yday less that entry; tm_wday from day 0, a Thursday; then the hours, minutes and seconds;
tm_isdst 0. The tables hold the days before each month less one, so January's entry is -1.
The derivation is in the doc.