Time zone confusion and implementation hints

Tony Finch dot at dotat.at
Mon Jul 5 13:43:49 UTC 2010


On Fri, 2 Jul 2010, Yves Goergen wrote:
>
> A (binary searchable) table implies a flat two-dimensional structure.
> Zones and rules are more than two-dimensional. At the point when I
> resolve zones and rules into a linear table, I think I lose the
> efficient storage and need to write out the transition times for all
> years separately, which will be huge.

You can fit a table entry into four bytes, so for two transitions each
year between 1970 and 2038 (136 entries) you need just over half a
kilobyte.

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/
FAIR ISLE FAEROES: WEST, BACKING SOUTHWEST, 4 OR 5. MODERATE OR ROUGH.
SHOWERS. MODERATE OR GOOD.



More information about the tz mailing list