framework/utils/CFormatter.php
protected function normalizeDateValue($time)
	{
		if(is_string($time))
		{
			if(ctype_digit($time) || ($time{0}=='-' && ctype_digit(substr($time, 1))))
				return (int)$time;
			else
				return strtotime($time);
		}
		elseif (class_exists('DateTime', false) && $time instanceof DateTime)
			return $time->getTimestamp();
		else
			return (int)$time;
	}
protected function normalizeDateValue($time)
	{
		if(is_string($time))
		{
			if(ctype_digit($time) || ($time{0}=='-' && ctype_digit(substr($time, 1))))
				return (int)$time;
			else
				return strtotime($time);
		}
		elseif (class_exists('DateTime', false) && $time instanceof DateTime)
			return $time->getTimestamp();
		else
			return (int)$time;
	}
protected function normalizeDateValue ( $ time ) { if ( is_string ( $ time ) ) { if ( ctype_digit ( $ time ) || ( $ time { 0 } == '-' && ctype_digit ( substr ( $ time , 1 ) ) ) ) return ( int ) $ time ; else return strtotime ( $ time ) ; } elseif ( class_exists ( 'DateTime' , false ) && $ time instanceof DateTime ) return $ time -> getTimestamp ( ) ; else return ( int ) $ time ; }
Normalizes an expression as a timestamp.
@param mixed $time the time expression to be normalized
@return int the normalized result as a UNIX timestamp
Normalizes an expression as a timestamp .