Easy Tutorial
❮ Pdostatement Closecursor Func Simplexml Load String ❯

PHP juliantojd() Function

PHP Calendar Reference Manual

Example

Convert a Julian calendar date to a Julian Day Count, and then back to a Julian calendar date:


Definition and Usage

The juliantojd() function converts a Julian calendar date to a Julian Day Count.

Note: The function handles dates in the range of the Julian calendar from 4713 BC to 9999 AD. It can calculate dates back to 4713 BC, but this is less meaningful. The Julian calendar was established in 46 BC, but some details were not stabilized until 8 AD. Different cultures have different definitions for the start of the year—not all countries recognize January as the first month. Remember that the currently universal calendar is the Gregorian calendar. The gregoriantojd() function is used to convert these dates to their Julian Day Count.

Tip: See the jdtojulian() function to convert a Julian Day Count back to a Julian calendar date.

Syntax

Parameter Description
month Required. A number from 1 to 12 that specifies the month.
day Required. A number from 1 to 31 that specifies the day.
year Required. A number from -4713 to 9999 that specifies the year.

Technical Details

Return Value: Returns the Julian Day number.
PHP Version: 4+
--- ---
❮ Pdostatement Closecursor Func Simplexml Load String ❯