Units for storage of internal time zone offsets

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Units for storage of internal time zone offsets
Date: 2002-07-09 04:11:32
Message-ID: 3D2A6274.29B315A3@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

We have "always" stored our time zone offsets in a compressed
divide-by-ten form to allow storage in a single byte. But there are a
few time zones ending at a 45 minute boundary, which "minutes divided by
10" can not represent.

But "minutes divided by 15" can represent this and afaik all other time
zones in existance. I have patches which will do this (with changes done
by a perl script so the math must be right ;). Can anyone think of a
counter-example time zone which does not fall on a 15 minute boundary?
Or any other reason to not move to 15 minute quantization for these
values?

btw, the "45 minute cases" are Nepal and the Chatham Islands, and the
"30 minute cases" are New Foundland, Canada and India, a bunch in
Australia, and a few others.

- Thomas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-07-09 04:13:49 Re: DROP COLUMN Progress
Previous Message Christopher Kings-Lynne 2002-07-09 04:08:52 Re: DROP COLUMN Progress