general_datetime_core 1.0.0
general_datetime_core: ^1.0.0 copied to clipboard
Pure Dart Persian and Umm al-Qura calendar chronology, date operations, and serialization.
Changelog #
1.0.0 #
- Extract the corrected pure Dart implementation from the Flutter package.
- Add
CalendarSystemand a registry for the three built-in calendars, with strict construction, supported ranges, and conversion metadata. - Add immutable
CalendarDate, explicit arithmetic overflow policies, half-openCalendarDateRange, and calendar-awareCalendarWeekRules. - Return the requested concrete type from
GeneralDateTimeInterface.now<T>(). - Provide calendar-safe field helpers and versioned instant/civil-date JSON serialization without runtime dependencies or a Flutter SDK requirement.
- Document installation, conversion, arithmetic, validation, supported ranges, serialization, and integration with the Flutter and formatting packages.
- Group chronology implementations and data by Gregorian, Persian, and Umm al-Qura Hijri calendar, retaining compatibility exports for date-time paths.
- Remove calendar-specific forwarding files from
shared/and reference their implementations incalendars/directly from the Flutter wrapper.