mirror of
https://github.com/quantum5/qcal.git
synced 2025-07-27 03:34:11 -04:00
gcal: add Tzolkʼin to calendar
This commit is contained in:
parent
36484c19ab
commit
59fe324126
|
@ -10,6 +10,7 @@ import {
|
||||||
monthName,
|
monthName,
|
||||||
weekdayNames,
|
weekdayNames,
|
||||||
} from '@common/gregorian';
|
} from '@common/gregorian';
|
||||||
|
import {jdnTzolkin, formatTzolkin} from '@common/mayan';
|
||||||
import {jdnLongCount} from '@common/longCount';
|
import {jdnLongCount} from '@common/longCount';
|
||||||
import {jdnJulian} from '@common/julian';
|
import {jdnJulian} from '@common/julian';
|
||||||
import {frDateFormat, frEndJD, frStartJD, jdnFrench} from '@common/french';
|
import {frDateFormat, frEndJD, frStartJD, jdnFrench} from '@common/french';
|
||||||
|
@ -40,6 +41,10 @@ function DayDetail({jdn}: { jdn: number }): JSX.Element {
|
||||||
<abbr title="Julian date" {...mobile}>J.</abbr>{' '}
|
<abbr title="Julian date" {...mobile}>J.</abbr>{' '}
|
||||||
{formatJG(jdnJulian(jdn))}
|
{formatJG(jdnJulian(jdn))}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="DayDetail-tz">
|
||||||
|
<abbr title="Tzolkʼin (Mayan)" {...mobile}>TZ</abbr>{' '}
|
||||||
|
{formatTzolkin(jdnTzolkin(jdn))}
|
||||||
|
</div>
|
||||||
{lc && <div className="DayDetail-lc">
|
{lc && <div className="DayDetail-lc">
|
||||||
<abbr title="Mesoamerican long count date" {...mobile}>LC</abbr>{' '}
|
<abbr title="Mesoamerican long count date" {...mobile}>LC</abbr>{' '}
|
||||||
{lc.join('.\u200b')}
|
{lc.join('.\u200b')}
|
||||||
|
|
Loading…
Reference in a new issue