Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP cal_from_jd() Function

PHP cal_from_jd() Function

PHP Calendar Reference Manual PHP Calendar Reference Manual

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:
  • CAL_GREGORIAN
  • CAL_JULIAN
  • CAL_JEWISH
  • CAL_FRENCH
  • |

    Technical Details

    | Return Value: | Returns an array containing the following calendar information:

    | | --- | --- | | PHP Version: | 4.1+ |

    PHP Calendar Reference Manual PHP Calendar Reference Manual