From bfaeba5c499d21096dc9ef7ecc72ece06239f277 Mon Sep 17 00:00:00 2001 From: trych Date: Tue, 27 Feb 2024 00:29:27 +0100 Subject: [PATCH] =?UTF-8?q?durations.css=20=E2=80=93=C2=A0correct=20leap-y?= =?UTF-8?q?ear=20duration;=20introduce=20olympiad=20(#475)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi there, just noted an error in the durations. A leap year does not refer to a time span of four years, but to the length of the year where the leap day occurs, i.e. 366 days. On the other hand, conveniently, there *is* a duration that describes a four-year timespan, an olympiad, which I introduced as a new property. --- src/extra/durations.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/extra/durations.css b/src/extra/durations.css index 4c7be7fa..030e52d1 100644 --- a/src/extra/durations.css +++ b/src/extra/durations.css @@ -7,7 +7,8 @@ --month: calc( 30 * var(--day)); --quarter: calc( 13 * var(--week)); --year: calc(365 * var(--day)); - --leap-year: calc( 4 * var(--year)); + --leap-year: calc(366 * var(--day)); + --olympiad: calc( 4 * var(--year)); --decade: calc( 10 * var(--year)); --generation: calc( 3 * var(--decade)); --lifetime: calc( 8 * var(--decade));