Easy Tutorial
❮ Func Array Filter Func Mysqli Connect ❯

PHP jdtounix() Function

PHP Calendar Reference Manual

Example

Convert a Gregorian date to a Julian Day Count, and then convert the Julian Day Count to a Unix timestamp:


Definition and Usage

The jdtounix() function converts a Julian Day Count to a Unix timestamp.

Note: If the parameter jd is not within the Unix epoch (meaning the Gregorian year must be between 1970 and 2037, or jd >= 2440588 and jd <= 2465342), the function will return false. The returned time is local time.

Tip: See unixtojd() to convert a Unix timestamp to a Julian Day Count.

Syntax

Parameter Description
jd Required. A Julian Day number between 2440588 and 2465342.

Technical Details

Return Value: Returns the Unix timestamp for the start of the specified Julian Day.
PHP Version: 4+
--- ---

❮ Func Array Filter Func Mysqli Connect ❯