CalendarRoundFactory
Defined in: factory/calendar-round.ts:17
Parses Calendar Round strings into concrete objects.
Example
const cr = new CalendarRoundFactory().parse('4 Ajaw 8 Kumk\'u');
Extends
Constructors
Constructor
new CalendarRoundFactory():
CalendarRoundFactory
Defined in: factory/calendar-round.ts:21
Defines the pattern describing a Calendar Round
Returns
CalendarRoundFactory
Overrides
Properties
pattern
pattern:
RegExp
Defined in: factory/base.ts:5
Inherited from
Methods
isNumberString()
isNumberString(
potentialNumber):boolean
Defined in: factory/calendar-round.ts:52
Parameters
potentialNumber
string
Returns
boolean
parse()
parse(
raw):CalendarRound
Defined in: factory/calendar-round.ts:35
Parse a textual Calendar Round representation.
Parameters
raw
string
String containing the Calendar Round.
Returns
Parsed CalendarRound instance.