general_datetime_core library
Calendar chronology, instant operations, and serialization for pure Dart.
Classes
- CalendarDate
- Immutable civil date. Equality includes the calendar; compareTo compares the civil-day position, so differently tagged dates can compare as zero.
- CalendarDateRange
- Half-open civil-date range. The end date is not included.
- CalendarDateRecord
- An immutable calendar date with no clock fields, timezone, or instant.
- CalendarDateUtils
- Calendar field operations that are safe for values typed as DateTime.
- CalendarInstant
- An immutable instant with optional presentation metadata.
- CalendarSystem
- Construction and conversion contract for the registered chronologies.
- CalendarSystems
- Immutable built-in registry. Chinese months are chronological ordinals; Hebrew uses stable slots. Always enumerate months with monthsOfYear.
- CalendarWeekRules
- Week-year rules apply to the chosen calendar, not implicitly to Gregorian.
- ChineseDateTime
- A Chinese civil date-time backed by the bounded .NET conversion tables.
-
GeneralDateTimeInterface<
T> - HebrewDateTime
- A midnight-based civil date and time in the fixed Hebrew calendar.
- HijriDateTime
- A date and time in Saudi Arabia's Umm al-Qura calendar.
- PersianDateTime
- A date and time in the Solar Hijri (Persian) calendar.
Enums
- CalendarId
- Unicode calendar identifiers supported by the version-1 storage schema.
- CalendarOverflow
- MissingMonthPolicy
- Policy for an intercalary month absent from a destination year.
Typedefs
- CalendarFields = ({int day, int month, int year})
- Calendar fields describe a civil date, without assigning a timezone.