In this article, you will learn how to convert a Julian Day Count to UNIX timestamp in PHP. The jdtounix() function returns the UNIX timestamp using the Julian Day Count. Let’s see its syntax and examples.
What is the syntax of the jdtounix() function in PHP?
Parameter | Details |
---|---|
jd | Julian Day number (minimum range: 2440588 maximum range:2465342) |
Examples of the jdtounix() function
Example 1. In the following example, we simply make conversions from Julian day to UNIX timestamp.
<?php
$j_d=gregoriantojd(11,01,1992);
echo jdtounix($j_d);
?>