cal_from_jd
Convert Julian day count to a date in the specified calendar.
cal_from_jd()
function converts the Julian day count to the date of the specified calendar.
Convert Julian day count to dates in the Gregorian calendar:
<?php $d = unixtojd ( mktime ( 0 , 0 , 0 , 9 , 25 , 2016 ) ) ; print_r ( cal_from_jd ( $d , CAL_GREGORIAN ) ) ; ?>
Run the instance
cal_from_jd ( jd , calendar ) ;
parameter | describe |
---|---|
jd | Required. Julian Day is defined by integers. |
calendar |
Required. Specifies the calendar to which it needs to be converted. Must be one of the following values:
|