New pre-SRFI: Modern date and time library Daphne Preston-Kendal (09 Nov 2024 09:48 UTC)
Re: New pre-SRFI: Modern date and time library Alex Shinn (09 Nov 2024 11:49 UTC)
Re: New pre-SRFI: Modern date and time library Daphne Preston-Kendal (10 Nov 2024 19:52 UTC)
Re: New pre-SRFI: Modern date and time library John Cowan (11 Nov 2024 03:49 UTC)
Re: New pre-SRFI: Modern date and time library Alex Shinn (11 Nov 2024 04:33 UTC)
Re: New pre-SRFI: Modern date and time library Arthur A. Gleckler (09 Nov 2024 17:36 UTC)
Re: New pre-SRFI: Modern date and time library Pierpaolo Bernardi (10 Nov 2024 00:56 UTC)
Re: New pre-SRFI: Modern date and time library Arthur A. Gleckler (10 Nov 2024 04:28 UTC)
Re: New pre-SRFI: Modern date and time library Pierpaolo Bernardi (10 Nov 2024 05:06 UTC)
Re: New pre-SRFI: Modern date and time library Daphne Preston-Kendal (10 Nov 2024 10:11 UTC)
Re: New pre-SRFI: Modern date and time library Pierpaolo Bernardi (10 Nov 2024 15:02 UTC)
Re: New pre-SRFI: Modern date and time library Daphne Preston-Kendal (10 Nov 2024 15:37 UTC)
Re: New pre-SRFI: Modern date and time library Lassi Kortela (10 Nov 2024 15:57 UTC)
Re: New pre-SRFI: Modern date and time library Alex Shinn (11 Nov 2024 04:43 UTC)
Re: New pre-SRFI: Modern date and time library Daphne Preston-Kendal (10 Nov 2024 10:19 UTC)

Re: New pre-SRFI: Modern date and time library Lassi Kortela 10 Nov 2024 15:57 UTC

> It gets trickier during the actual period of a real, live leap second. We inevitably have to rely on the operating system to do the right thing.

https://en.wikipedia.org/wiki/Leap_second#Workarounds_for_leap_second_problems

In particular, smoothed leap seconds:
https://www.cl.cam.ac.uk/~mgk25/time/utc-sls/

> There is nothing fundamentally different about the precision required to claim a timescale based on TAI than one based on UTC

Indeed. It's worth considering what happened with character encodings.
In theory, each character set and encoding is its own well-defined
island. In practice, many programs receive bytevectors of unknown
provenance from files or over the network, and it's generally more
useful to handle them imperfectly than to refuse them.

A practical string representation is a bytevector tagged with an
encoding. A practical time representation is an integer or a real number
tagged with the timescale and timezone.

Two different operations are useful. One operation to _convert_ a value
from one character encoding, timescale, or timezone to another. Another
operation to _assume_ a new encoding, timescale, or timezone without
doing anything to change the underlying bytevector or number.

The concept of local time is ambiguous. An unspecified constant timezone
is different from a timezone that is intentionally variable.