jalali_date changelog
Release history of the jalali_date Dart package.
1.0.0
Breaking
- Requires Dart 3. The Flutter dependency is gone; the package is pure Dart.
- The
ldfield and the publicmonthsLengthandkabiseMonthsLengthtables are removed. year,month, anddayare final;greToJalis no longer public.toStringpads the date toyyyy/MM/ddand the time toHH:mm:ss.PersianDate(year, month, day)validates its arguments and throwsArgumentError.toStringthrowsArgumentErrorinstead of a genericExceptionwhen nothing would be shown.
Fixed
- Gregorian to Jalali conversion is correct for Gregorian century years and across Jalali leap cycles (port of jalaali-js).
Added
toDateTime()for Jalali to Gregorian conversion.isLeapYearandmonthLength.- Equality on
(year, month, day)andComparableordering. monthName,monthNames,weekday,weekdayName, andweekdayNames.showHour,showMinute, andshowSecondflags ontoString.format(pattern)for custom date strings.
[0.0.1] - July 10 2018
- Convert Gregorian date to Jalali date