Re: timezones BCE

From: chap(at)anastigmatix(dot)net
To: Dave Cramer <davecramer(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: timezones BCE
Date: 2022-04-13 21:15:23
Message-ID: b74401fc17146409effbff4e5e0a64d8@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2022-04-13 14:13, Dave Cramer wrote:
>
> Oh please don't do something bespoke. I'm trying to make this work with
> the
> JDBC driver.
> So it has to be at least compatible with other libraries.

Looks like Java agrees with the offset, prior to Toronto's 1895 adoption
of the hour-wide zone:

jshell> java.time.ZoneId.of("America/Toronto").
...> getRules().
...> nextTransition(java.time.Instant.parse("0101-01-01T00:00:00Z"))
$1 ==> Transition[Gap at 1895-01-01T00:00-05:17:32 to -05:00]

Regards,
-Chap

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2022-04-13 21:18:29 Re: Fixes for compression options of pg_receivewal and refactoring of backup_compression.{c,h}
Previous Message Michael Paquier 2022-04-13 21:11:28 Re: CLUSTER on partitioned index