maya-dates

@drewsonne/maya-dates / Exports / GregorianCalendarDate

Class: GregorianCalendarDate

Represent a Gregorian date.

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new GregorianCalendarDate(julianDay)

Store a date with reference to a Julian Day.

Parameters

Name Type
julianDay number

Inherited from

WesternCalendar.constructor

Defined in

lc/western/western.ts:18

Properties

julianDay

julianDay: number

Inherited from

WesternCalendar.julianDay

Defined in

lc/western/western.ts:9

Accessors

date

get date(): MBCalendar

Returns

MBCalendar

Inherited from

WesternCalendar.date

Defined in

lc/western/western.ts:30


day

get day(): number

Return the day of the month

Returns

number

Inherited from

WesternCalendar.day

Defined in

lc/western/western.ts:60


era

get era(): "BCE" | "CE"

Return whether the date is the common era or before the common era.

Returns

"BCE" | "CE"

Inherited from

WesternCalendar.era

Defined in

lc/western/western.ts:68


month

get month(): number

Return the month

Returns

number

Inherited from

WesternCalendar.month

Defined in

lc/western/western.ts:52


offset

get offset(): number

Handle the sliding offset between gregorian and julian dates

Returns

number

Overrides

WesternCalendar.offset

Defined in

lc/western/gregorian.ts:12


year

get year(): number

Return the year

Returns

number

Inherited from

WesternCalendar.year

Defined in

lc/western/western.ts:41

Methods

isThreshold

isThreshold(): boolean

Return true if this date is on the Julian/Gregorian threshold

Returns

boolean

Inherited from

WesternCalendar.isThreshold

Defined in

lc/western/western.ts:76


toString

toString(): string

Represent this date as a string with era markers. If the date is suffixed with a ‘*’, this date is on the Julian/Gregorian threshold date.

Returns

string

Inherited from

WesternCalendar.toString

Defined in

lc/western/western.ts:85