Commit
Author: trych [trych@users.noreply.github.com]
Committer: GitHub [noreply@github.com] Mon, 26 Feb 2024 23:29:27 +0000
Hash: bfaeba5c499d21096dc9ef7ecc72ece06239f277
Timestamp: Mon, 26 Feb 2024 23:29:27 +0000 (10 months ago)

+2 -1 +/-1 browse
durations.css – correct leap-year duration; introduce olympiad (#475)
durations.css – correct leap-year duration; introduce olympiad (#475)

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.
1diff --git a/src/extra/durations.css b/src/extra/durations.css
2index 4c7be7f..030e52d 100644
3--- a/src/extra/durations.css
4+++ b/src/extra/durations.css
5 @@ -7,7 +7,8 @@
6 --month: calc( 30 * var(--day));
7 --quarter: calc( 13 * var(--week));
8 --year: calc(365 * var(--day));
9- --leap-year: calc( 4 * var(--year));
10+ --leap-year: calc(366 * var(--day));
11+ --olympiad: calc( 4 * var(--year));
12 --decade: calc( 10 * var(--year));
13 --generation: calc( 3 * var(--decade));
14 --lifetime: calc( 8 * var(--decade));