Skip to main content

@drewsonne/maya-dates

TypeScript library for Maya Calendar date manipulation

Easy to Use

Calendar Round & Long Count

Work with Maya calendar dates using both the 260-day Tzolkin cycle, 365-day Haab cycle, and the Long Count vigesimal system. Full support for Calendar Round dates and conversions to Western calendars.

Focus on What Matters

Type-Safe & Well-Tested

Written in TypeScript with strict typing and over 500 tests. Immutable date objects, singleton pattern for efficient comparisons, and comprehensive API documentation generated from source code.

Powered by React

Date Arithmetic & Wildcards

Perform date arithmetic with distance numbers, expand wildcard patterns to generate valid date sequences, and convert between multiple correlation constants (GMT, Astronomical, Martin-Skidmore).