app/Module/LifespansChartModule.php
protected function jdToYear(int $jd): int
    {
        if ($jd === 0) {
            return 0;
        }

        $gregorian = new GregorianCalendar();
        [$y] = $gregorian->jdToYmd($jd);

        return $y;
    }
protected function jdToYear(int $jd): int
    {
        if ($jd === 0) {
            return 0;
        }

        $gregorian = new GregorianCalendar();
        [$y] = $gregorian->jdToYmd($jd);

        return $y;
    }
protected function jdToYear ( int $ jd ) : int { if ( $ jd === 0 ) { return 0 ; } $ gregorian = new GregorianCalendar ( ) ; [ $ y ] = $ gregorian -> jdToYmd ( $ jd ) ; return $ y ; }
Convert a julian day to a gregorian year

@param int $jd

@return int
Convert a julian day to a gregorian year