Skip to main content

JulianCalendarDate

Defined in: lc/western/julian.ts:7

Represent a Julian date.

Extends

Constructors

Constructor

new JulianCalendarDate(julianDay): JulianCalendarDate

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

Store a date with reference to a Julian Day.

Parameters

julianDay

number

Returns

JulianCalendarDate

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(): -13 | -12 | -11 | -10 | -1 | 0 | 1

Defined in: lc/western/julian.ts:12

Handle the sliding offset between gregorian and julian dates

Returns

-13 | -12 | -11 | -10 | -1 | 0 | 1

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