PHP jdtounix() Function

PHP jdtounix Function


Definition :

The jdtounix() function is a built-in function in PHP.The PHP jdtounix() function returns a Unix timestamp corresponding to the Julian Day given in jday else FALSE if jday is not in the Unix epoch (Gregorian years between 1970 and 2037). The time returned is localtime.

Syntax

   jdtounix(jd);

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

 Following example convert a Gregorian date to a Julian Day Count; then convert the Julian Day Count to Unix timestamp:

Output : 173577600