Skip to main content

LongCountFactory

Defined in: factory/long-count.ts:13

Parses textual representations of Long Count dates.

Example

const lc = new LongCountFactory().parse('9.4.2.4.1');

Extends

Constructors

Constructor

new LongCountFactory(): LongCountFactory

Defined in: factory/long-count.ts:14

Returns

LongCountFactory

Overrides

Factory.constructor

Properties

pattern

pattern: RegExp

Defined in: factory/base.ts:5

Inherited from

Factory.pattern

Methods

parse()

parse(raw): LongCount

Defined in: factory/long-count.ts:24

Parse a textual Long Count value.

Parameters

raw

string

String containing the Long Count.

Returns

LongCount

Parsed LongCount instance.