02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

tzfile(4) tzfile(4)<br />

Each structure is written as a 4-byte value for t t gmt 0 f f of<br />

type long, in a standard byte order, followed by aI-byte value<br />

for tt isdst and a I-byte value for tt abbrind. In each<br />

structure, tt_gmtoff gives the number of seconds to be added<br />

to Greenwich mean time (GMn, tt isdst tells whether<br />

tm isdst should be set by localtime(3), and tt abbrind<br />

serVes as an index into the array of time-zone abbreviation characters<br />

that follow the ttinfo structure(s) in the file.<br />

Then there are tzh_leapcnt pairs of 4-byte values, written in a<br />

standard byte order. The first value of each pair gives the time (as<br />

returned by time(2» at which a leap second occurs; the second<br />

gives the total number of leap seconds to be applied after the<br />

given time. The pairs of values are sorted in ascending order by<br />

time.<br />

Finally, there are tzh ttisstdcnt standard/wall indicators,<br />

each stored as a I-byte value. They tell whether the transition<br />

times associated with local time types are specified as standard<br />

time or wall-clock time and are used when a time-zone file is used<br />

in handling POSIX-style time-zone environment variables.<br />

localtime uses the first standard-time ttinfo structure in the<br />

file (or simply the first ttinfo structure in the absence of a<br />

standard-time structure) if either tzh timecnt is 0 or the time<br />

argument is less than the first transitiontime recorded in the file.<br />

SEE ALSO<br />

ctime(3), tzic(1M), tzdump(1M).<br />

2 February, 1990<br />

RevisionC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!