You are here

function DatexHejri::islamic_to_jd in Datex 7.2

* Islamic Calendar *

Parameters

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

Return value

Integer Julian day *

1 call to DatexHejri::islamic_to_jd()
DatexHejri::jd_to_islamic in datex_api/DatexHejri.inc
* Islamic Calendar *

File

datex_api/DatexHejri.inc, line 109

Class

DatexHejri
@author Sina Salek

Code

function islamic_to_jd($year, $month, $day) {
  return $day + ceil(29.5 * ($month - 1)) + ($year - 1) * 354 + floor((3 + 11 * $year) / 30) + $this->_islamicEpoch - 1;
}