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
Properties
julianDay
julianDay:
number
Defined in: lc/western/western.ts:9
Inherited from
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
day
Get Signature
get day():
number
Defined in: lc/western/western.ts:64
Return the day of the month
Returns
number
Inherited from
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
month
Get Signature
get month():
number
Defined in: lc/western/western.ts:56
Return the month
Returns
number
Inherited from
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
year
Get Signature
get year():
number
Defined in: lc/western/western.ts:45
Return the year
Returns
number
Inherited from
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
toString()
toString():
string
Defined in: lc/western/western.ts:88
Represent this date as a string with era markers.
Returns
string