public function convertJdToUnix($jd) { if ($jd > 0) { $timestamp = ($jd - 2440588) * 86400; if ($timestamp >= 0) { return $timestamp; } } return false; }