iranian_holidays 0.4.0
iranian_holidays: ^0.4.0 copied to clipboard
Iranian holidays for jalali_date dates: calculated offline, including the lunar Hijri holidays, or from an online holiday source you choose.
0.4.0 #
Breaking #
OfficialHoliday.irannames the holidays in religiously neutral wording instead of the official text, soOfflineHolidaySourcedescriptions change. Honorifics are dropped, "رحلت" is "درگذشت", Shia Imams are named by their place among the Shia Imams, and the state holidays describe the event:عاشورای حسینیis nowعاشورا,پیروزی انقلاب اسلامیis nowسالروز انقلاب ۱۳۵۷. Pass your ownholidayslist to keep the official text. Online sources are unchanged.
0.3.0 #
Breaking #
- The package is renamed from
jalali_holidaystoiranian_holidays. Depend oniranian_holidaysand importpackage:iranian_holidays/iranian_holidays.dart; the API is otherwise the same. HijriDatecomes fromjalali_date1.2.0 and is re-exported unchanged in name: the constructor is no longerconstand throwsArgumentErrorfor a day that does not exist on Iran's official calendar. UseHijriDate(1448, 1, 10)instead ofconst HijriDate(1448, 1, 10).
Changed #
- The Hijri calendar moved to
jalali_dateasHijriDateandIranianHijri; holiday dates are unchanged. - Requires
jalali_date^1.2.0.
0.2.0 #
OfflineHolidaySource: Iran's 26 official holidays and Fridays, calculated on the device with no network. Hijri holidays come from a predicted crescent sighting in Iran (Meeus positions, Yallop criterion), corrected to the published calendar from 1387 to 1406.hijriMonthStartstakes announced month starts,holidaysa changed holiday list.OfficialHolidayandOfficialHoliday.iran, the list of official holidays.HijriDateandOfflineHolidaySource.hijriDatefor the Iranian Hijri date of a day.FallbackHolidaySource: an online source first, another source when it fails.- README lists the offline holidays of 1405 and 1406.
0.1.0 #
HolidaySourceinterface,HolidayDay, andHolidayEvent.HolidayApiIrSourcefor the free holidayapi.ir service.CalendarificSourceandGoogleCalendarSourcefor services that need your own API key, withbaseUrifor a proxy.CachedHolidaySourceto avoid repeated requests.