Skip to main content

GregorianCalendarDate

Defined in: lc/western/gregorian.ts:58

Represent a Gregorian date.

Extends

Constructors

Constructor

new GregorianCalendarDate(julianDay): GregorianCalendarDate

Defined in: lc/western/western.ts:18

Store a date with reference to a Julian Day.

Parameters

julianDay

number

Returns

GregorianCalendarDate

Inherited from

WesternCalendar.constructor

Properties

julianDay

julianDay: number

Defined in: lc/western/western.ts:9

Inherited from

WesternCalendar.julianDay

Accessors

date

Get Signature

get date(): MBCalendar

Defined in: lc/western/western.ts:34

Get the calendar date representation.

Returns

MBCalendar

Calendar object with year, month, and day properties from moonbeams library

Inherited from

WesternCalendar.date


day

Get Signature

get day(): number

Defined in: lc/western/western.ts:64

Return the day of the month

Returns

number

Inherited from

WesternCalendar.day


era

Get Signature

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

Defined in: lc/western/western.ts:72

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

Returns

"BCE" | "CE"

Inherited from

WesternCalendar.era


month

Get Signature

get month(): number

Defined in: lc/western/western.ts:56

Return the month

Returns

number

Inherited from

WesternCalendar.month


offset

Get Signature

get offset(): number

Defined in: lc/western/gregorian.ts:63

Handle the sliding offset between gregorian and julian dates

Returns

number

Overrides

WesternCalendar.offset


year

Get Signature

get year(): number

Defined in: lc/western/western.ts:45

Return the year

Returns

number

Inherited from

WesternCalendar.year

Methods

isThreshold()

isThreshold(): boolean

Defined in: lc/western/western.ts:80

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

Returns

boolean

Inherited from

WesternCalendar.isThreshold


toString()

toString(): string

Defined in: lc/western/western.ts:88

Represent this date as a string with era markers.

Returns

string

Inherited from

WesternCalendar.toString