Home > PHP > Function > Calendar > jdtounix()

jdtounix()

jdtounix - Convert Julian Day to Unix timestamp

Syntax

int jdtounix (int $jday)

Arguments

  • jday - A julian day number between 2440588 and 2465342.

Description

This function will return a Unix timestamp corresponding to the Julian Day given in jday or FALSE if jday is not inside the Unix epoch (Gregorian years between 1970 and 2037 or 2440588 <= jday <= 2465342). The time returned is localtime (and not GMT).

Version

PHP 4, 5

Return value

The unix timestamp for the start of the given julian day.