Prado\I18N\core\DateFormat::getDayInYear PHP Method

getDayInYear() protected method

Get the day in the year, e.g. [1-366]
protected getDayInYear ( $date, $pattern = 'D' ) : integer
return integer hours in AM/PM format.
    protected function getDayInYear($date, $pattern = 'D')
    {
        if ($pattern != 'D') {
            throw new Exception('The pattern for day in year is "D".');
        }
        return $date['yday'];
    }