Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSlP6-00081N-Gn for pgsql-general@arkaria.postgresql.org; Sat, 03 Apr 2021 18:53:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lSlP5-0000GR-5G for pgsql-general@arkaria.postgresql.org; Sat, 03 Apr 2021 18:53:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSlP4-0000GJ-Tb for pgsql-general@lists.postgresql.org; Sat, 03 Apr 2021 18:53:50 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSlP2-00072d-6h for pgsql-general@lists.postgresql.org; Sat, 03 Apr 2021 18:53:50 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 34FB24862; Sat, 3 Apr 2021 20:53:46 +0200 (CEST) Date: Sat, 3 Apr 2021 20:53:46 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: = t1 - t0 but t0 + i <> t1 when t1 and t2 timestamptz values and i is an interval value Message-ID: <20210403185346.GA21988@hjp.at> Mail-Followup-To: pgsql-general@lists.postgresql.org References: <402F8EFB-3FE9-421A-B3BA-F736AB8E3ABB@yugabyte.com> <1578541.1616765766@sss.pgh.pa.us> <7CCA5681-341E-440B-BD94-3EA8DB003C5A@yugabyte.com> <42FA985C-527B-4E39-A883-89DA6763AA2F@yugabyte.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2021-03-30 12:36:16 -0700, Adrian Klaver wrote: > On 3/30/21 10:31 AM, Bryn Llewellyn wrote: > > > adrian.klaver@aklaver.com wrote: > > >=20 > > > The point is horology is cultural, see non-Western calendars and > > > alternate time keeping methods. Trying to maintain a distinction > > > between the two concepts only furthers the confusion. The > > > inconsistencies you see are the result of one(culture) intervening > > > in the other(horology). > >=20 > > I intend the word =E2=80=9Chorology=E2=80=9D to be taken in this sense: > >=20 > > =C2=AB The word "horology" means "the art of making clocks and watches". > > So the intended meaning of the phrase "horological interval" is > > "what you'd measure with a clock". The implication is "what you'd > > measure with the best clock that there is (in other words, a caesium > > clock) but expressed in seconds and multiples thereof (hours, and > > minutes, but not days).=E2=80=9D =C2=BB > >=20 > > There=E2=80=99s nothing cultural about the size of the caesium unit. It > > simply emerges from the laws of physics. Maybe you don=E2=80=99t like t= he > > word =E2=80=9Chorology=E2=80=9D. I=E2=80=99m open to suggestions for a = better term of art. Most clocks are not atomic clocks. Their job is not to count physical seconds (or periods of the radiation corresponding to the transition between the two hyperfine levels of the fundamental unperturbed ground-state of the caesium-133 atom), but to display "civil time", which is very much a cultural construct. When I went to bed last weekend, my clock showed something after 3:00 despite the fact that only a few minutes before there was a 1 before the colon. That's how a clock should behave (unfortunately, the clocks in my coffee maker and my stove don't do that - I have to set the time twice a year).=20 (Operating systems often have a "wall-clock time clock" and a "monotonic clock". The wall-clock time clock is expected to mimic a clock on the wall, including all the cultural baggage like leap seconds, daylight saving times (although that's usually added in a second layer). The monotonic clock is supposed to just count seconds at a fixed rate, like a stop watch.) > > But I hold fast to the idea that an atomic clock measures time and > > durations in one way and a calendar measures these in a different > > way. Seems to me that the whole business of calendars is nicely > > captured by the term =E2=80=9Ccultural=E2=80=9D. > >=20 > > Maybe I could use the terms =E2=80=9Catomic clock time=E2=80=9D and =E2= =80=9Ccalendar time=E2=80=9D. >=20 > Which are for practical purposes one and the same, otherwise we would not > have leap seconds as a method of syncing the two. I disagree. We have leap seconds exactly because they are not the same. Atomic clock time just counts at at a constant rate - it doesn't care about the Earth's rotation. People however (well, some people, at least those who made the rules) do care about that so they add a second every now and then to keep days in sync with the Earth's rotation (currently TAI and UTC differ by 37 seconds). hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmBoubMACgkQ8g5IURL+ KF3SsA//QUjCQreT71vPsAR9v0AlivzmsFGAr7tgRBP+VfcpBjxyrexMfFB73vsA R9OClL5E2DCuDiDqFjhjHVIZMkqerAXaE7WdE2PJKzE6erTAMjruIU8CbR2rVohO FOHXvAKGEB6svLjckvdtVNVjUIdYPB6BQ8IKLwajYFn5WhVPxE64GFneFatv7HGL xHgOJ1YRZ2nI8TphjDZTQbCeeoC1XShcTNHVHEBWKeOwq3u4jT7PEnXNHkV/EZ9h bsnEXYE+BuRKl3/gL1pzjtCL6CK9T8NG3d77YDu7KqsOSHR9PmjZHvkGhUtcXr+p 5EAIT2ZE+GWBOaVgkfUpGxj8zJqVONrqf0lo8DDJd5BZ9KkGlD3Tbm3JxIVHJcIE 7knYIWS49sF7YUuCpnq6VY3d8MSNzSgAXZ++wXsDb1K/3r61Da4GfbJJ6rMAper2 19xIpBBZdgdsaNeuBPZqyJoRMJwlkyS8+T4sLkrAFKU8kmYTFDPik5HALyeT5j8m yuvzphL3LcZnYXhCjpv3XFncWKWa0LiFVTPwTnwPfupuSegOQP7NAxg6Af2pAqLd E2S1/LHEjuPlDFjNP3YQ766mSrv2HE5lGv+glK+IossJiLNsNkiDvG4NresQQ6dx bh26mu8YQUVbEmgkYKg0Ebr5hBp5k9aMoERDEYATeZj3DhIgDi4= =ub2h -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--