Re: timezones BCE - Mailing list pgsql-hackers

From chap@anastigmatix.net
Subject Re: timezones BCE
Date
Msg-id 17e2658c31d8284355de0d3230445855@anastigmatix.net
Whole thread Raw
In response to timezones BCE  (Dave Cramer <davecramer@gmail.com>)
Responses Re: timezones BCE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2022-04-13 12:33, Dave Cramer wrote:
> test=# set timezone to 'America/Toronto';
> SET
> test=# select '0101-01-01'::timestamptz;
>          timestamptz
> ------------------------------
>  0101-01-01 00:00:00-05:17:32
> 
> Specifically why the -05:17:32

Timezones were regularized into their (typically hour-wide) chunks
during a period around the late nineteenth century IIRC.

If you decompile the zoneinfo database to look at America/Toronto,
you will probably find an entry for dates earlier than when the
regularized zones were established there, and that entry will have
an offset reflecting Toronto's actual longitude.

Regards,
-Chap



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Improving the "Routine Vacuuming" docs
Next
From: Zheng Li
Date:
Subject: Re: Support logical replication of DDLs