#include <tzdat.h>
Public Attributes | |
int32_t | gmtOffset |
uint16_t | nextEntryDelta |
uint16_t | defaultZone |
uint16_t | count |
uint16_t | zoneNumber |
To get from one table entry to the next, add the nextEntryDelta. If the nextEntryDelta is zero then this is the last entry. The offset index table is designed for sequential access, not random access. Given the small number of distinct offsets (39 in 1999j), this suffices.
The value of default is the zone within this list that should be selected as the default zone in the absence of any other discriminating information. This information comes from the file tz.default. Note that this is itself a zone number, like those in the array starting at &zoneNumber.
The gmtOffset field must be 4-aligned for some architectures. To ensure this, we do two things: 1. The entire struct is 4-aligned. 2. The gmtOffset is placed at a 4-aligned position within the struct. 3. The size of the whole structure is padded out to 4n bytes. We achieve this last condition by adding two bytes of padding after the last zoneNumber, if count is _even_. That is, the struct size is 10+2count+padding, where padding is (count2==0 ? 2:0). See gentz for implementation.
Definition at line 186 of file tzdat.h.
|
|
|
|
|
|
|
|
|
|