Menu Home

jdtounix

osbo.com | PHP | Functions | jdtounix

Convert Julian Day to Unix timestamp

Syntax

jdtounix ( int $julianday ) : int

Parameters

julianday

A julian day number between 2440588 and 2465342.

Return

The unix timestamp for the start (midnight, not noon) of the given Julian day.

Examples

<?

$julianday = unixtojd();

$return = jdtounix($julianday);

echo $return;

?>
1618617600

PHP