@drewsonne/maya-dates / Exports
• Const lords: _LordsOfTheNight
▸ coefficientParser(rawCoefficient): ICoefficient
| Name | Type |
|---|---|
rawCoefficient |
string | number | Wildcard |
▸ getCalendarRound(tzolkin, haab): CalendarRound
Return a comparable instance of a Calendar Round.
| Name | Type |
|---|---|
tzolkin |
Tzolkin |
haab |
Haab |
▸ getCorrelationConstant(id): CorrelationConstant
Return a Lord of the Night by its G id.
| Name | Type |
|---|---|
id |
string |
▸ getCorrelationConstant(id): CorrelationConstant
| Name | Type |
|---|---|
id |
number |
▸ getHaab(coeff, month): Haab
Return a comparable HaabMonth instantiation.
| Name | Type |
|---|---|
coeff |
ICoefficient |
month |
Wildcard | HaabMonth |
▸ getHaabMonth(newCycleName): HaabMonth | Wildcard
| Name | Type |
|---|---|
newCycleName |
string | number | Wildcard |
▸ getTzolkin(coeff, day): Tzolkin
Return a comparable instance of a Tzolkin date.
| Name | Type |
|---|---|
coeff |
ICoefficient |
day |
Wildcard | TzolkinDay |
▸ getTzolkinDay(name): TzolkinDay | Wildcard
| Name | Type |
|---|---|
name |
string | number | Wildcard |
▸ isComment(c): c is Comment
Type guard to check if a value is a Comment instance.
| Name | Type |
|---|---|
c |
any |
c is Comment
▸ isNumberPrimitive(x): x is number
Determine if a value is a number primitive.
| Name | Type | Description |
|---|---|---|
x |
any |
Value to test. |
x is number
▸ isPart(o): o is IPart
Type guard to ensure a value implements IPart.
| Name | Type | Description |
|---|---|---|
o |
any |
Value to test. |
o is IPart
True if o implements IPart.
▸ isStringPrimitive(x): x is string
Determine if a value is a string primitive.
| Name | Type | Description |
|---|---|---|
x |
any |
Value to test. |
x is string
▸ isWildcard(token): token is Wildcard
| Name | Type |
|---|---|
token |
any |
token is Wildcard
▸ wrapsComment(o): o is CommentWrapper
Type guard for CommentWrapper.
| Name | Type |
|---|---|
o |
any |
o is CommentWrapper