general_datetime_core 1.0.0 copy "general_datetime_core: ^1.0.0" to clipboard
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 CalendarSystem and a registry for the three built-in calendars, with strict construction, supported ranges, and conversion metadata.
  • Add immutable CalendarDate, explicit arithmetic overflow policies, half-open CalendarDateRange, and calendar-aware CalendarWeekRules.
  • 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 in calendars/ directly from the Flutter wrapper.
0
likes
140
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart Persian and Umm al-Qura calendar chronology, date operations, and serialization.

Topics

#calendar #datetime #persian #hijri

License

BSD-3-Clause (license)

More

Packages that depend on general_datetime_core