ilib_calendar library API

Classes

CopticCal
The Coptic calendar.
CopticDate
A date in the Coptic calendar.
CopticRataDie
Coptic Rata Die implementation.
EthiopicCal
The Ethiopic (Ge'ez) calendar.
EthiopicDate
A date in the Ethiopic (Ge'ez) calendar.
EthiopicRataDie
Ethiopic Rata Die implementation.
GregorianCal
The Gregorian (proleptic) calendar.
GregorianDate
A date in the Gregorian calendar.
GregRataDie
Gregorian Rata Die implementation.
HebrewCal
The Hebrew (Jewish) lunisolar calendar.
HebrewDate
A date in the Hebrew (Jewish) calendar.
HebrewRataDie
Hebrew Rata Die implementation.
ILibAstro
Astronomical calculations used by calendar systems that track solar and lunar events (equinoxes, new moons, solar longitude).
ILibCalendar
Abstract calendar type used to calculate date and time information.
ILibCalendarDate
Abstract base for all calendar-specific date implementations.
ILibRataDie
Abstract base for all calendar-specific Rata Die (fixed-day) implementations.
IslamicCal
The Islamic lunisolar calendar.
IslamicDate
A date in the Islamic calendar.
IslamicRataDie
Islamic Rata Die implementation.
JulianCal
The Julian calendar.
JulianDate
A date in the Julian calendar.
JulianDay
A Julian Day number split into its integer day and fractional day parts.
JulianRataDie
Julian Rata Die implementation.
PersianAlgoCal
The Persian algorithmic calendar.
PersianAlgoDate
A date in the Persian algorithmic calendar.
PersianAlgoRataDie
PersianAlgo Rata Die implementation.
PersianCal
The Persian astronomical calendar.
PersianDate
A date in the Persian astronomical calendar.
PersianRataDie
Persian Rata Die implementation.
ThaiSolarCal
The Thai Solar calendar.
ThaiSolarDate
A date in the Thai Solar calendar.
ThaiSolarRataDie
ThaiSolar Rata Die implementation.

Functions

floorDiv(int a, int b) int
Integer division that rounds toward negative infinity (floor division), unlike Dart's ~/ which truncates toward zero.
mod(int dividend, int modulus) int
Mathematically correct modulo that always returns a non-negative result, unlike Dart's % operator which mirrors the sign of the dividend.