Prado\I18N\core\DateFormat::getDay PHP 메소드

getDay() 보호된 메소드

"d" for non-padding, "dd" will always return 2 characters.
protected getDay ( $date, $pattern = 'd' ) : string
리턴 string day of the month
    protected function getDay($date, $pattern = 'd')
    {
        $day = $date['mday'];
        switch ($pattern) {
            case 'd':
                return $day;
            case 'dd':
                return str_pad($day, 2, '0', STR_PAD_LEFT);
            default:
                throw new Exception('The pattern for day of ' . 'the month is "d" or "dd".');
        }
    }