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