src/BoomCMS/Editor/Editor.php
public function setTime(DateTime $time = null)
    {
        $timestamp = $time ? $time->getTimestamp() : null;

        $this->session->put($this->timePersistenceKey, $timestamp);

        if ($time) {
            $this->setState(static::HISTORY);
        }

        return $this;
    }
public function setTime(DateTime $time = null)
    {
        $timestamp = $time ? $time->getTimestamp() : null;

        $this->session->put($this->timePersistenceKey, $timestamp);

        if ($time) {
            $this->setState(static::HISTORY);
        }

        return $this;
    }
public function setTime ( DateTime $ time = null ) { $ timestamp = $ time ? $ time -> getTimestamp ( ) : null ; $ this -> session -> put ( $ this -> timePersistenceKey , $ timestamp ) ; if ( $ time ) { $ this -> setState ( static :: HISTORY ) ; } return $ this ; }
Set a time at which to view pages at.

@param DateTime $time

@return $this
Set a time at which to view pages at .