maya-dates

@drewsonne/maya-dates / Exports / LongCountFactory

Class: LongCountFactory

Parses textual representations of Long Count dates.

Example

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

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LongCountFactory()

Overrides

Factory.constructor

Defined in

factory/long-count.ts:14

Properties

pattern

pattern: RegExp

Inherited from

Factory.pattern

Defined in

factory/base.ts:5

Methods

parse

parse(raw): LongCount

Parse a textual Long Count value.

Parameters

Name Type Description
raw string String containing the Long Count.

Returns

LongCount

Parsed LongCount instance.

Defined in

factory/long-count.ts:24


split

split(raw): string[]

Split the provided fullDate into its components

Parameters

Name Type
raw string

Returns

string[]

Access

protected

Inherited from

Factory.split

Defined in

factory/base.ts:25