misri_hijri 0.1.7
misri_hijri: ^0.1.7 copied to clipboard
Hijri calendar dates for Dart/Flutter with a choice of calculation system: Misri or Umm al-Qura.
Changelog #
0.1.7 #
- Update Package description.
format()now zero-pads theddandmmtokens to two digits (e.g.05,09); usedandmfor the non-padded values. Padding respects the active locale's digits (e.g.٠١in Arabic).
0.1.1 #
- Added a runnable
example/. - Verified the two Umm al-Qura month-start entries that differ from the
hijripackage (1 Jumada al-Akhirah 1446, 1 Shawwal 1485) against the AlAdhan API; documented inline. - Tightened README wording; added a
.gitignore.
0.1.0 #
Initial release.
- Two Hijri calendar engines behind one
HijriCalendarBaseinterface:MisriHijriCalendar— fixed tabular calculation, any year.UmmAlQuraCalendar— Saudi official calendar, ~1356–1500 AH (1937–2077 CE), with manual moon-sighting adjustments.
Hijrifactory (now,fromDate,fromHijri,yesterday,tomorrow) for choosing the engine with a singletypeparameter.- Gregorian <-> Hijri conversion,
addDays/addMonths(with day clamping), and chronological comparison across engine types. format()withdd/d,mm/m,MMMM/MM,yyyy/yy,DDDD/DDtokens.- Built-in
enandarlocales (trfor Umm al-Qura), custom locale registration, and Arabic-Indic digits.