You are here

function cmfcCalendarV1Arabic::hj_convert in Calendar Systems 7.2

Same name and namespace in other branches
  1. 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
  2. 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
  3. 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
  4. 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
  5. 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
  6. 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()

* 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

calendar/v1/calendarSystems/arabic.class.inc.php, line 411

Class

cmfcCalendarV1Arabic

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,
  );
}