framework/i18n/CDateFormatter.php
protected function formatMinutes($pattern,$date)
	{
		$minutes=$date['minutes'];
		if($pattern==='m')
			return $minutes;
		elseif($pattern==='mm')
			return str_pad($minutes,2,'0',STR_PAD_LEFT);
		else
			throw new CException(Yii::t('yii','The pattern for minutes must be "m" or "mm".'));
	}
protected function formatMinutes($pattern,$date)
	{
		$minutes=$date['minutes'];
		if($pattern==='m')
			return $minutes;
		elseif($pattern==='mm')
			return str_pad($minutes,2,'0',STR_PAD_LEFT);
		else
			throw new CException(Yii::t('yii','The pattern for minutes must be "m" or "mm".'));
	}
protected function formatMinutes ( $ pattern , $ date ) { $ minutes = $ date [ 'minutes' ] ; if ( $ pattern === 'm' ) return $ minutes ; elseif ( $ pattern === 'mm' ) return str_pad ( $ minutes , 2 , '0' , STR_PAD_LEFT ) ; else throw new CException ( Yii :: t ( 'yii' , 'The pattern for minutes must be "m" or "mm".' ) ) ; }
Get the minutes.
"m" for non-padding, "mm" will always return 2 characters.
@param string $pattern a pattern.
@param array $date result of {@link CTimestamp::getdate}.
@throws CException if "minutes" pattern is unknown
@return string minutes.
Get the minutes . m for non - padding mm will always return 2 characters .