PHP cal_from_jd() Function
Example
Convert a Julian day count to a Gregorian calendar date:
Run Example »
Definition and Usage
The cal_from_jd() function converts a Julian day count to a date in a specified calendar.
Syntax
cal_from_jd(
jd,calendar);
| Parameters | Description |
|---|---|
| jd | Required. A number (the Julian day count). |
| calendar | Required. Specifies the calendar to use. The following constants can be used:
|
Technical Details
| Return Value: | Returns an array containing the following calendar information:
- Date in the form "month/day/year"
- Month
- Year
- Day of the week
- Abbreviated and full names of weekdays and months
PHP Calendar Reference Manual