Convert June 20, 2007 (Gregorian calendar) to a Julian Day Count.
<?php $d=cal_to_jd(CAL_GREGORIAN,6,20,2007); echo $d; ?> |
The cal_to_jd() function converts a date from a specified calendar to a Julian Day Count.
cal_to_jd(calendar,month,day,year); |
Parameter |
Description |
calendar |
Required. Specifies the calendar to convert from. Must be one of the following values:
|
month |
Required. Specifies the month as a numeric value. |
day |
Required. Specifies the day as a numeric value. |
year |
Required. Specifies the year as a numeric value. |
Return Value: |
Returns a Julian Day number |
PHP Version: |
4.1+ |