@drewsonne/maya-dates / Exports / GregorianCalendarDate
Represent a Gregorian date.
↳ GregorianCalendarDate
• new GregorianCalendarDate(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(): number
Handle the sliding offset between gregorian and julian dates
number
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