Copyright © tutorialspoint.com
| cal_to_jd ( $calendar, $month, $day, $year ); |
This calculates the Julian day count for a date in the specified calendar.
| Parameter | Description |
|---|---|
| calendar | Required. Calendar to use for calculation. The following
calendar values can be used:
|
| month | Required. Month in the selected calendar |
| year | Required. Day in the selected calendar |
| year | Required. Year in the selected calendar |
The length in days of the selected month in the given calendar.
Try out following example:
<?php $d=cal_to_jd(CAL_GREGORIAN,11,03,2007); echo $d; ?> |
This will produce following result:
2454408 |
Copyright © tutorialspoint.com