Easy Tutorial
❮ Func Simplexml Xpath Func Misc Unpack ❯

PHP cal_to_jd() Function

PHP Calendar Reference Manual

Example

Convert the date June 20, 2007 (Gregorian calendar) to the Julian Day Count:


Definition and Usage

The cal_to_jd() function converts a specified calendar date to the Julian Day Count.

Syntax

Parameter Description
calendar Required. Specifies the calendar to use. Must be one of these constants: CAL_GREGORIAN<br> CAL_JULIAN<br> CAL_JEWISH<br> CAL_FRENCH
month Required. A number specifying the month.
day Required. A number specifying the day.
year Required. A number specifying the year.

Technical Details

Return Value: Returns the Julian Day number.
PHP Version: 4.1+
--- ---

❮ Func Simplexml Xpath Func Misc Unpack ❯