lsolesen\pel\PelEntryTime::convertJdToUnix PHP Method

convertJdToUnix() public method

Converts a Julian Day count to a UNIX timestamp.
public convertJdToUnix ( integer $jd ) : mixed
$jd integer the Julian Day count.
return mixed $timestamp the integer timestamp or false if the day count cannot be represented as a UNIX timestamp.
    public function convertJdToUnix($jd)
    {
        if ($jd > 0) {
            $timestamp = ($jd - 2440588) * 86400;
            if ($timestamp >= 0) {
                return $timestamp;
            }
        }
        return false;
    }