function cmfcCalendarV1Arabic::hj_convert in Calendar Systems 6
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
- 8.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
- 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
- 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
- 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::hj_convert()
- 7.2 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 404
Class
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,
);
}