@drewsonne/maya-dates / Exports / LongCountFactory
Parses textual representations of Long Count dates.
Example
const lc = new LongCountFactory().parse('9.4.2.4.1');
↳ LongCountFactory
• new LongCountFactory()
• pattern: RegExp
▸ parse(raw): LongCount
Parse a textual Long Count value.
| Name | Type | Description |
|---|---|---|
raw |
string |
String containing the Long Count. |
Parsed LongCount instance.
▸ split(raw): string[]
Split the provided fullDate into its components
| Name | Type |
|---|---|
raw |
string |
string[]
Access
protected