julianDayNumber property

int julianDayNumber
override

Converts a date of the Jalali calendar to the Julian Day number.

non-null

Implementation

@override
int get julianDayNumber {
  final r = _JalaliCalculation.calculate(year);

  return Gregorian(r.gy, 3, r.march).julianDayNumber +
      (month - 1) * 31 -
      (month ~/ 7) * (month - 7) +
      day -
      1;
}