Jalali.fromGregorian constructor

Jalali.fromGregorian(
  1. Gregorian date
)

Create a Jalali date from Gregorian date

Implementation

factory Jalali.fromGregorian(Gregorian date) {
  return Jalali.fromJulianDayNumber(date.julianDayNumber);
}