src/Operations/Initiator.php
protected function getJdnFromBase(GregorianDateTime $dateTime): int
    {
        $year = $dateTime->format('Y');
        $month = $dateTime->format('m');
        $day = $dateTime->format('d');

        return gregoriantojd($month, $day, $year);
    }
protected function getJdnFromBase(GregorianDateTime $dateTime): int
    {
        $year = $dateTime->format('Y');
        $month = $dateTime->format('m');
        $day = $dateTime->format('d');

        return gregoriantojd($month, $day, $year);
    }
protected function getJdnFromBase ( GregorianDateTime $ dateTime ) : int { $ year = $ dateTime -> format ( 'Y' ) ; $ month = $ dateTime -> format ( 'm' ) ; $ day = $ dateTime -> format ( 'd' ) ; return gregoriantojd ( $ month , $ day , $ year ) ; }
Return the JDN of the given gregorian date time.

@param GregorianDateTime $dateTime

@return int
Return the JDN of the given gregorian date time .