DNBranch::LastUpdated PHP Метод

LastUpdated() публичный Метод

public LastUpdated ( ) : SS_Datetime
Результат SS_Datetime
    public function LastUpdated()
    {
        if ($this->_lastUpdatedCache) {
            return $this->_lastUpdatedCache;
        }
        try {
            $created = $this->branch->getCommit()->getCommitterDate();
        } catch (Exception $e) {
            //occasionally parsing will fail this is a fallback to make it still work
            return new SS_Datetime();
        }
        $created->setTimezone(new DateTimeZone(date_default_timezone_get()));
        $date = SS_Datetime::create();
        $date->setValue($created->format('Y-m-d H:i:s'));
        $this->_lastUpdatedCache = $date;
        return $date;
    }