public function date($date)
    {
        if ($date instanceof \DateTime) {
            $date = $date->format('Y-m-d H:i:s');
        }
        $this->arguments[] = '--date=' . $date;
        return $this;
    }
public function date($date)
    {
        if ($date instanceof \DateTime) {
            $date = $date->format('Y-m-d H:i:s');
        }
        $this->arguments[] = '--date=' . $date;
        return $this;
    }
public function date ( $ date ) { if ( $ date instanceof \ DateTime ) { $ date = $ date -> format ( 'Y-m-d H:i:s' ) ; } $ this -> arguments [ ] = '--date=' . $ date ; return $ this ; }
Add the date option to the command line.

@param \DateTime|string $date The timestamp to use for the commit (if string: Y-m-d H:i:s).

@return CommitCommandBuilder
Add the date option to the command line .