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

getHour24() protected method

"H" for non-padding, "HH" will always return 2 characters.
protected getHour24 ( $date, $pattern = 'H' ) : string
return string hours in 24 hour format.
    protected function getHour24($date, $pattern = 'H')
    {
        $hour = $date['hours'];
        switch ($pattern) {
            case 'H':
                return $hour;
            case 'HH':
                return str_pad($hour, 2, '0', STR_PAD_LEFT);
            default:
                throw new Exception('The pattern for 24 hour ' . 'format is "H" or "HH".');
        }
    }