__isindst
function · crt · orchestration
- Address
0x41482c· 33 bytes, up to0x41484c- Signature
int32_t __cdecl (const tm *fields)- Meaning
- Answers 0x41484d's daylight test of a tm, called under lock 0xb
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- crt/time#local-time
Finding: Local time in crt: calendar time
localtime(&t) answers null for a negative time and reads the zone first. For a time more than
three days into 1970 and three days short of 2^31, it answers gmtime of t − _timezone, and
when _daylight is set and __isindst holds for that, gmtime of it less _dstbias with
tm_isdst 1. Nearer either end it takes gmtime(t) and carries −_timezone, and −_dstbias
when __isindst holds, through the fields by hand, tm_isdst left 0: a day back across January 1
gives December 31 of the year before with tm_yday 364, and a day forward is added to tm_mday
and tm_yday with no month carried. __isindst's rules are not read here; it answers 0 while
_daylight is 0.
The derivation is in the doc.
Callers 2
- _localtime crt
- ___loctotime_t crt
Callees 3
Calls and jumps by a bare address, from tables/calls.tsv.