src/Titon/Db/Behavior/TimestampBehavior.php
public function preSave(Event $event, Query $query, $id, array &$data) {
        $data[$this->getConfig($query->getType() === Query::UPDATE ? 'updateField' : 'createField')] = time();

        return true;
    }
public function preSave(Event $event, Query $query, $id, array &$data) {
        $data[$this->getConfig($query->getType() === Query::UPDATE ? 'updateField' : 'createField')] = time();

        return true;
    }
public function preSave ( Event $ event , Query $ query , $ id , array & $ data ) { $ data [ $ this -> getConfig ( $ query -> getType ( ) === Query :: UPDATE ? 'updateField' : 'createField' ) ] = time ( ) ; return true ; }
Append the current timestamp to the data.

@param \Titon\Event\Event $event
@param \Titon\Db\Query $query
@param int|int[] $id
@param array $data
@return bool
Append the current timestamp to the data .