Re: timezones BCE

Поиск
Список
Период
Сортировка
От chap@anastigmatix.net
Тема Re: timezones BCE
Дата
Msg-id 17e2658c31d8284355de0d3230445855@anastigmatix.net
обсуждение исходный текст
Ответ на timezones BCE  (Dave Cramer <davecramer@gmail.com>)
Ответы Re: timezones BCE
Список 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 по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Improving the "Routine Vacuuming" docs
Следующее
От: Zheng Li
Дата:
Сообщение: Re: Support logical replication of DDLs