Skip to main content

API Reference

Enumerations

EnumerationDescription
HaabMonths-
TzolkinDays-

Classes

ClassDescription
Base-
CalendarRoundA combination of 260-day cycles and the Haab cycle. This class should not be instantiated directly, and should be accessed through getCalendarRound.
CalendarRoundFactoryParses Calendar Round strings into concrete objects.
CalendarRoundIterator-
CalendarRoundWildcardExpand a Calendar Round containing wildcards into all valid combinations.
CommentRepresents a free form comment that can be attached to many structures.
CommentWrapperMixin providing comment functionality for domain objects.
CorrelationConstantCorrelation Constant to align Long Counts with Western Calendars
Cycle-
DistanceNumberMinimal interface used for equality comparison across calendar components.
FactoryAn abstract class to handle the create of an object from a string
FullDateMinimal interface used for equality comparison across calendar components.
FullDateFactoryGiven a fullDate composed of a Long Count and a Calendar Round, create a FullDate object.
FullDateWildcardExpand a partial FullDate into all valid permutations.
GregorianCalendarDateRepresent a Gregorian date.
GregorianFactoryFactory for creating GregorianCalendarDate instances from Gregorian date strings.
HaabDescribes a Haab fullDate with a position and a month
HaabMonthHaab month component of a Calendar Round date.
HashMapSimple bidirectional map used to translate between indexes and values.
I18nManagerManages internationalization for Maya calendar terms.
JulianCalendarDateRepresent a Julian date.
LongCountLong Count cycle.
LongcountAdditionBase class for operations that manipulate LongCount values.
LongCountFactoryParses textual representations of Long Count dates.
LongcountOperationBase class for operations that manipulate LongCount values.
LongcountSubtractionBase class for operations that manipulate LongCount values.
LongCountWildcardExpand a LongCount containing wildcards into all valid dates.
LordOfTheNightDescribes one of the 9 Lords of the night. This class is accessible through its instantiated values, or the get() method.
NumberCoefficient-
TzolkinDescribes a fullDate in the 260-day cycle with a position and a day
TzolkinDayDescribes only the day component of a 260-day cycle
WesternCalendar-
WildcardMinimal interface used for equality comparison across calendar components.
WildcardCoefficient-

Interfaces

InterfaceDescription
HaabMonthTranslationsTranslation registry for Haab month names
I18nRenderOptionsOptions for rendering dates with i18n
ICoefficient-
IComponent-
ILongcount-
IPartMinimal interface used for equality comparison across calendar components.
LocaleDefinitionComplete locale definition
TranslationTranslation mapping for a single term
TzolkinDayTranslationsTranslation registry for Tzolkin day names

Type Aliases

Type AliasDescription
LocaleLocale identifier for i18n support

Variables

VariableDescription
calendarRoundOriginThe Calendar Round base date: 4 Ajaw 8 Kumk'u.
DEFAULT_LOCALEDefault locale identifier
HAAB_MONTH_NAMESCanonical names for the 19 Haab month names in positional order (1-19)
lords-
modernMayanistLocaleModern Mayanist Orthography
modernVariantLocaleModern Variant Orthography
older16cLocaleOlder 16th Century Orthography
TZOLKIN_DAY_NAMESCanonical names for the 20 Tzolkin day names in positional order (1-20)

Functions

FunctionDescription
coefficientParser-
getCalendarRoundReturn a comparable instance of a Calendar Round.
getCorrelationConstantReturn a Lord of the Night by its G id.
getHaabReturn a comparable HaabMonth instantiation.
getHaabMonth-
getI18nManagerGet the singleton I18nManager instance
getTzolkinReturn a comparable instance of a Tzolkin date.
getTzolkinDay-
isCommentType guard to check if a value is a Comment instance.
isNumberPrimitiveDetermine if a value is a number primitive.
isPartType guard to ensure a value implements IPart.
isStringPrimitiveDetermine if a value is a string primitive.
isWildcard-
wrapsCommentType guard for CommentWrapper.