(chibi chrono) may be of interest for comparison:

https://github.com/ashinn/alschemist/blob/master/chibi/chrono/base.scm

Probably it's more than flexible enough to serve as a reference implementation
and has some nice things like the Japanese calendar.

--
Alex

On Sat, Nov 9, 2024 at 6:48 PM Daphne Preston-Kendal <xxxxxx@nonceword.org> wrote:
<https://gitlab.com/dpk/presrfis/-/blob/master/date-time.md>

As ever, I would be grateful for feedback.

I already have a volunteer to implement this SRFI. I also foresee putting it through the SRFI process myself, but if anyone is interested in taking it over, let’s talk.

I would be especially grateful if someone could double-check my maths for the ‘nearly accurate’ leap second table.
I did the calculation in a spreadsheet which you can see here: <https://www.icloud.com/numbers/0ElT5eIhtpOS2ac2oC-o2HTyQ#pseudo-UTC>


Daphne