original_string: public function setTimestamps()
  	{
  		$now = date('Y-m-d H:i:s');
  
  		if (isset($this->updated_at))
  			$this->updated_at = $now;
  
  		if (isset($this->created_at) && $this->isNewRecord())
  			$this->created_at = $now;
  	}
code: public function setTimestamps()
  	{
  		$now = date('Y-m-d H:i:s');
  
  		if (isset($this->updated_at))
  			$this->updated_at = $now;
  
  		if (isset($this->created_at) && $this->isNewRecord())
  			$this->created_at = $now;
  	}
code_tokens: public function setTimestamps ( ) { $ now = date ( 'Y-m-d H:i:s' ) ; if ( isset ( $ this -> updated_at ) ) $ this -> updated_at = $ now ; if ( isset ( $ this -> created_at ) && $ this -> isNewRecord ( ) ) $ this -> created_at = $ now ; }
docstring: Updates a model's timestamps.
docstring_tokens: Updates a model s timestamps .