general_date_format_core 1.0.0 copy "general_date_format_core: ^1.0.0" to clipboard
general_date_format_core: ^1.0.0 copied to clipboard

Pure Dart localized formatting and parsing for Persian and Umm al-Qura dates.

Changelog #

Unreleased #

  • Remove the unused deprecated locale initialization hook. Locale data continues to load lazily; Flutter adapters reference the core directly.
  • Export locale resolution helpers through the public core library so Material adapters do not import core implementation files.
  • Validate strict/loose era labels against the resolved year's sign, preserving ambiguous labels and signed-year round trips, including year zero.
  • Resolve two-digit years across chronology bounds and negative centuries; compare wall-field window endpoints and keep repeated-year range failures within the documented FormatException/nullable parsing contracts.
  • Reject local DST normalization that changes minutes, seconds, or fractional seconds during strict/loose parsing; preserve permissive parsing and the date-only one-hour midnight exception.
  • Remove Gregorian formatting/parsing from GeneralDateFormat; applications use intl.DateFormat directly and choose their own locale initialization.
  • Bundle Persian/Hijri neutral locale metadata and remove intl and clock from the Dart core. The Flutter adapter also has no direct intl dependency.
  • Add a per-formatter native now callback for two-digit year parsing.
  • Default pre-operation dateSymbols to Persian; reject native DateTime selectors with UnsupportedError, including nullable parsing APIs.

1.0.0 — release preparation #

  • Extract the corrected pure Dart implementation from the Flutter package.
  • Preserve exact microseconds in six-digit fraction formatting/parsing, including localized digits, and reject excess nonzero precision in strict/loose parsing.
  • Generate Persian and Umm al-Qura names from checksum-locked CLDR 48 sources, preserving documented locale and shared-pattern compatibility policies.
0
likes
130
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart localized formatting and parsing for Persian and Umm al-Qura dates.

License

BSD-3-Clause (license)

Dependencies

general_datetime_core

More

Packages that depend on general_date_format_core