You are here

function DatexHejri::hj_convert in Datex 7.2

* Islamic Calendar *

Parameters

Integer Year Gregorian year: * Integer Month Gregorian month * Integer Day Gregorian day * @desc hj_convert will convert given Gregorian date into Hegri date (Islamic calendar) * @author Khaled Al-Shamaa

Return value

Array Hegri date [int Year, int Month, int Day] (Islamic calendar) *

File

datex_api/DatexHejri.inc, line 76

Class

DatexHejri
@author Sina Salek

Code

function hj_convert($Y, $M, $D) {
  $jd = GregorianToJD($M, $D, $Y);
  list($year, $month, $day) = $this
    ->jd_to_islamic($jd);
  return array(
    $year,
    $month,
    $day,
  );
}