English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

PHP jdtounix() Function Usage and Example

PHP Calendar Calendar Function Manual

The jdtounix() function converts Julian day count to Unix timestamp.

Syntax

jdtounix ($jday );

Definition and Usage

If the jday parameter is not within the Unix new era (meaning the Gregorian year must be between 1970 and 2037 or jday>= 2440588 and jday<= 2465342If the jday parameter is not within the Unix new era (meaning the Gregorian year must be between

Parameter

Serial NumberParameters and Description
1

jday(essential)

a 2440588 to 2465342 The number of Julian days between.

Return Value

Given Unix timestamp starting from Julian Day.

Online Example

Convert Gregorian calendar dates to Julian day count and then convert Julian day count to Unix timestamp:

<?php
   $jd = gregoriantojd(11,3,1990);
   $unix = jdtounix($jd);
   
   echo($unix);
?>
Test and see‹/›

This will produce the following result-

657590400

 PHP Calendar Calendar Function Manual