设置最后修改日期.

@param int $last_modify
2562
public static function lastModified($last_modify) {
        $time    = time();
        $date    = gmdate('D, d M Y H:i:s', $time) . ' GMT';
        $ldate   = gmdate('D, d M Y H:i:s', $last_modify) . ' GMT';
        $headers = [
            'Date'          => $date,
            'Last-Modified' => $ldate
        ];

        foreach ($headers as $header => $val) {
            @header($header . ': ' . $val);
        }
    }
714755
def _get_last_modification_date(url):
    """"""
    request = requests.head(url)
    date_string = request.headers["last-modified"]
    parsed = time.strptime(date_string, "%a, %d %b %Y %H:%M:%S %Z")
    return datetime(*(parsed)[0:6])
1359990
function class_last_modify_htime($class_name)
	{
		$last_mt = bors_find_first($class_name, array('order' => '-modify_time'))->modify_time();
		$last_ct = bors_find_first($class_name, array('order' => '-create_time'))->create_time();
		$last_action_ts = max($last_mt, $last_ct);
		$last_interval = bors_lib_time::smart_interval_vp(time() - $last_action_ts);
		$last_edit = short_time($last_action_ts);
		return ec("{$last_edit} ({$last_interval} назад)");
	}
421224
public function setLastMod($lastMod)
    {
        if ($lastMod instanceof \DateTime) {
            $lastMod = new LastModification($lastMod);
        }
        $this->elements[self::ELEMENT_LASTMOD] = $lastMod;

        return $this;
    }
549356
public function dateModify($modify) {
        $modified = (array) $this->dateTime->modify($modify);
        $date = explode(' ', $modified['date']);

        return $this->setDate($date[0])->parseDate();
    }
948463
def last_modified(self):
        ''''''
        lm = self.response.headers.get('last-modified', None)
        return datetime.strptime(lm, '%a, %d %b %Y %H:%M:%S GMT') if lm \
            else None
649627
private boolean modifyTime(long milliseconds, TimeModification mod) throws LockingException {
                Validate.notNegative(milliseconds);
                Validate.notNull(mod);
                if (milliseconds == 0) {
                        return false;
                }

                long diff = milliseconds;
                if (mod == TimeModification.SUB) {
                        diff = (long) Math.copySign(diff, -1);
                }

                Calendar cal = Calendar.getInstance();
                cal.setTimeInMillis(timestamp.getTime() + diff);
                return setTimestamp(cal.getTime());
        }
889941
public function modify($change)
    {
        $date = clone $this;
        $date->setDate(strtotime($change, $this->getDate(DATE_FORMAT_UNIXTIME)));

        return $date;
    }
767080
public function modify()
    {
        $date   = $this->getParameter('value');
        $modify = (string) $this->getParameter('modify');
        $format = (string) $this->getParameter('format');

        if (empty($date))
            $date = 'now';

        if ($date instanceof Meta)
            $date = $date->MetaValue;

        if (!$date instanceof Date) {
            try {
                $date = $this->DateFactory->newLocalDate($date);
            } catch(DateException $e) {
                $date = $this->DateFactory->newLocalDate('now');
            }
        }

        $date = $this->DateFactory->toLocalDate($date);
        if (!empty($modify)) {
            try {
                $date->modify($modify);
            } catch (Exception $e) {
                return '';
            }
        }

        return $date->format($format);
    }
349009
def last_modified
      rails_root_mtime = Time.zone.at(::File.new("#{Rails.root}").mtime)
      timestamps = [rails_root_mtime, self.updated_at]
      timestamps.sort.last
    end
111691
public void setLastModifiedDateTime(com.google.api.ads.admanager.axis.v201902.DateTime lastModifiedDateTime) {
        this.lastModifiedDateTime = lastModifiedDateTime;
    }
214486
public function process($last_call = true)
    {
        if (self::is_ajax(true)) {
            // AJAX call
            return $this->process_data($last_call);
        }
        return true;
    }
406782
public function lastModified()
    {
        return $this->lastMod == 0?$this->lastMod = $this->getVariables()->getValue("last_modified"):$this->lastMod;
    }
900764
public function setModified($modified = null)
    {
        if ($modified) {
            $this->modified = $modified;
        } else {
            $this->modified = new \Datetime();
        }

        return $this;
    }
533562
public void setLastUpdatedTimes(java.util.Collection<DateTimeRange> lastUpdatedTimes) {
        if (lastUpdatedTimes == null) {
            this.lastUpdatedTimes = null;
            return;
        }

        this.lastUpdatedTimes = new java.util.ArrayList<DateTimeRange>(lastUpdatedTimes);
    }
192406
def set_update_time(self, update_time=None):
        
        if update_time and isinstance(update_time, (datetime.datetime,)):
            self.last_update_time = update_time
        else:
            self.last_update_time = datetime.datetime.utcnow()
825364
public function setEditedAt($edited_at) {
        
        $this -> edited_at = $edited_at !== null ? new \DateTime($edited_at) : null;
        return $this;
    }