cal_to_jd
Converts the dates in the specified calendar to Julian day counts.
cal_to_jd()
function converts the date of the specified calendar into a Julian day count.
Convert September 25, 2016 (Gregorian Calendar) to Julian Day Count:
<?php $d = cal_to_jd ( CAL_GREGORIAN , 9 , 25 , 2016 ) ; echo $d ; ?>
Run the instance
cal_to_jd ( calendar , month , day , year ) ;
parameter | describe |
---|---|
calendar |
Required. Specify the calendar to be converted. Must be one of the following constants:
|
month | Required. Specify the month by number. |
day | Required. Define the date by numbers. |
year | Required. Specify the year by number. |