@drewsonne/maya-dates / Exports / WesternCalendar
WesternCalendar
• new WesternCalendar(julianDay)
Store a date with reference to a Julian Day.
| Name | Type |
|---|---|
julianDay |
number |
• Private _date: null | MBCalendar
• julianDay: number
• get date(): MBCalendar
MBCalendar
• get day(): number
Return the day of the month
number
• get era(): "BCE" | "CE"
Return whether the date is the common era or before the common era.
"BCE" | "CE"
• get month(): number
Return the month
number
• Abstract get offset(): number
number
• get year(): number
Return the year
number
▸ 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