@drewsonne/maya-dates / Exports / JulianCalendarDate
Represent a Julian date.
↳ JulianCalendarDate
• new JulianCalendarDate(julianDay
)
Store a date with reference to a Julian Day.
Name | Type |
---|---|
julianDay |
number |
• julianDay: number
• get
date(): MBCalendar
MBCalendar
WesternCalendar.date
• get
day(): number
Return the day of the month
number
WesternCalendar.day
• get
era(): "BCE"
| "CE"
Return whether the date is the common era or before the common era.
"BCE"
| "CE"
WesternCalendar.era
• get
month(): number
Return the month
number
WesternCalendar.month
• get
offset(): 1
| -1
| 0
| -13
| -12
| -11
| -10
Handle the sliding offset between gregorian and julian dates
1
| -1
| 0
| -13
| -12
| -11
| -10
WesternCalendar.offset
• get
year(): number
Return the year
number
WesternCalendar.year
▸ isThreshold(): boolean
Return true if this date is on the Julian/Gregorian threshold
boolean
▸ 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.
string