w3resource

PHP: jdtounix() function

Convert Julian Day to Unix timestamp

The jdtounix() function is used to convert a Julian day count to a UNIX timestamp.

Version:

(PHP 4 and above)

Syntax:

jdtounix(julian_day_count)

Parameter:

Name Description Required /
Optional
Type
julian_day_count A Julian day number between 2440588 and 2465342. Required Date

Return value:

The unix timestamp.

Value Type: Integer.

Example:

<?php
$julian_day_count = jdtounix(2441201);
echo($julian_day_count);
?>

Sample Output:

52963200 

View the example in the browser

See also

PHP Function Reference

Previous: JDToJulian
Next: JewishToJD



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/php/function-reference/jdtounix.php