Help With Understanding the Binary Files

Bill Seymour stdbill.h at pobox.com
Sat Dec 12 15:56:31 UTC 2009


I've finally gotten around to doing some analysis on actual
zoneinfo information files; and I've determined empirically
that tzh_is***cnt are either zero or tzh_typecnt as Guy Harris
recently said.

But I've also found lots of files, not just poxisrules, in which
the UTC/local and/or standard/wall indicators exist and are
non-zero; so I'm still confused.  Do I simply ignore them
in all files except poxisrules (as Harris seemed to imply,
but I might have misread it), or do I need to reinterpret
the transition times based on these indicators when they
exist?

(If the latter, that seems to be the less desirable design.
Since the files are used much more often than they're
created, wouldn't it be reasonable to compute the wall
clock times eagerly rather than lazily?  Note also that,
while creating the files, we have enough information
to do that correctly.  At the time the file is read, we've
lost the DST offset amount and have only a switch
indicating /whether/ we're observing DST.)

Thanks,

--Bill Seymour



More information about the tz mailing list