@drewsonne/maya-dates / Exports / CalendarRoundFactory
Parses Calendar Round strings into concrete objects.
Example
const cr = new CalendarRoundFactory().parse('4 Ajaw 8 Kumk\'u');
↳ CalendarRoundFactory
• new CalendarRoundFactory()
Defines the pattern describing a Calendar Round
• pattern: RegExp
▸ isNumberString(potentialNumber): boolean
| Name | Type |
|---|---|
potentialNumber |
string |
boolean
▸ parse(raw): CalendarRound
Parse a textual Calendar Round representation.
| Name | Type | Description |
|---|---|---|
raw |
string |
String containing the Calendar Round. |
Parsed CalendarRound instance.
▸ split(raw): string[]
Split the provided fullDate into its components
| Name | Type |
|---|---|
raw |
string |
string[]
Access
protected