hijriToGregorianYear static method

int hijriToGregorianYear(
  1. int hijriYear
)

Converts Hijri year to approximate Gregorian year

Implementation

static int hijriToGregorianYear(int hijriYear) {
  // Rough conversion: Hijri year starts approximately 621-622 CE
  return ((hijriYear * 354.37) / 365.25 + 621.5).round();
}