public function cmp($value)
	{
		$ts = sfDateTimeToolkit::getTS($value);
		
		if ($this->ts < $ts)
		{
			// less than
			return -1;
		}
		else if ($this->ts > $ts)
		{
			// greater than
			return 1;
		}
		
		// equal to
		return 0;
	}
public function cmp($value)
	{
		$ts = sfDateTimeToolkit::getTS($value);
		
		if ($this->ts < $ts)
		{
			// less than
			return -1;
		}
		else if ($this->ts > $ts)
		{
			// greater than
			return 1;
		}
		
		// equal to
		return 0;
	}
public function cmp ( $ value ) { $ ts = sfDateTimeToolkit :: getTS ( $ value ) ; if ( $ this -> ts < $ ts ) { // less than return - 1 ; } else if ( $ this -> ts > $ ts ) { // greater than return 1 ; } // equal to return 0 ; }
Compares two date values.

@param	mixed	timestamp, string, or sfDate object
@return	int		-1, 0, or 1
Compares two date values .