Set the date and time this object was last modified.

@param \Lullabot\Mpx\DataService\DateTime\DateTimeFormatInterface $updated
767489
public function setUpdated(\Lullabot\Mpx\DataService\DateTime\DateTimeFormatInterface $updated)
    {
        $this->updated = $updated;
    }
63154
private function setDateContext(\DateTime $dateContext = null)
    {
        if (!$dateContext) { // we havent set context so we need the default to be: now minus 15 mins, rounded to 5 min increment.
            $now = new \DateTime();
            $now->sub(new \DateInterval('PT15M'));
            // round down to 5 minute increment
            $now->setTime($now->format('H'), floor($now->format('i') / 5) * 5, 0);
            $dateContext = $now;
        }
        $this->dateContext = $dateContext;
    }
1182280
private function setDateTimeSettableOnce(?\DateTimeImmutable $dateTimeSettableOnce): self
    {
        if (null === $dateTimeSettableOnce) {
            return $this;
        }
        if (null !== $this->dateTimeSettableOnce) {
            throw new \RuntimeException(
                DateTimeSettableOnceFieldInterface::PROP_DATE_TIME_SETTABLE_ONCE
                . ' is already set, you can not overwrite this with a new dateTime'
            );
        }
        $this->updatePropertyValue(
            DateTimeSettableOnceFieldInterface::PROP_DATE_TIME_SETTABLE_ONCE,
            $dateTimeSettableOnce
        );

        return $this;
    }
161546
public function setExpireDate(DateTimeInterface $dt)
    {
        $this->expire_time = (int)$dt->format('U') - time();
        return $this;
    }
1371291
public function getUpdated(): \Lullabot\Mpx\DataService\DateTime\DateTimeFormatInterface
    {
        if (!$this->updated) {
            return new NullDateTime();
        }

        return $this->updated;
    }
1359095
public function setDates()
    {
        $date = Carbon::now();

        $this->setNotificationData('updated_at', $date);
        $this->setNotificationData('created_at', $date);
    }
1223007
public function setReferenceTime(\DateTimeInterface $dateTime)
    {
        $dt = $dateTime->format(DATE_ISO8601);
        $this->add('reference_time', $dt);
    }
350519
public function setDateTime(DateTimeInterface $dateTime)
    {
        $this->clearCachedValueIf($this->getCachedValue() != $dateTime->format(DateTime::RFC2822));
        if ($dateTime instanceof DateTime) {
            $immutable = new DateTimeImmutable('@'.$dateTime->getTimestamp());
            $dateTime = $immutable->setTimezone($dateTime->getTimezone());
        }
        $this->dateTime = $dateTime;
    }
481767
public function setTargetExpirationDate(\Lullabot\Mpx\DataService\DateTime\DateTimeFormatInterface $targetExpirationDate)
    {
        $this->targetExpirationDate = $targetExpirationDate;
    }
346277
public function setHiddenBeforeDateTime(\DateTimeInterface $dateTime = null): void
    {
        if ($this->getHiddenBeforeDateTime() instanceof \DateTime && $dateTime instanceof \DateTime && $this->getHiddenBeforeDateTime()->format(\DateTime::W3C) === $dateTime->format(\DateTime::W3C)) {
            return;
        }
        $this->materializeNodeDataAsNeeded();
        $this->nodeData->setHiddenBeforeDateTime($dateTime);

        $this->context->getFirstLevelNodeCache()->flush();
        $this->emitNodeUpdated($this);
    }
56988
public function saveCalculatedUpdates($updates)
    {
        foreach ($updates as $date => $updatesByDate) {
            /** @var Entity $data */
            foreach ($updatesByDate as $data) {
                /* some entries are without dates */
                $data->setDate($date);
                $this->replace($data);
            }
        }
    }
896199
public function setDateSend($dateSend = null)
    {
        if (!$dateSend) {
            $this->dateSend = new \DateTime();
        } else {
            $this->dateSend = $dateSend;
        }

        return $this;
    }
908749
private function setValue(?\DateTimeImmutable $value = null): void
    {
        if ($value === null) {
            $this->value = null;

            return;
        }

        $this->value = $value->setTime((int) $value->format('H'), (int) $value->format('i'), 0);
    }
644480
public function setModificationDate($modificationDate = null)
    {
        if (!isset($modificationDate)) {
            $modificationDate = new \DateTime();
        }
        if (is_string($modificationDate)) {
            $modificationDate = new \DateTime($modificationDate);
        }
        $this->modificationDate = $modificationDate;
        return $this;
    }
554999
public function setExpired($expired)
    {
        if ($expired instanceof DateTime) {
            $this->expired = $expired;
            return;
        } elseif ($expired instanceof Model) {
            $this->expired = $expired->deleted_at ?: $expired->updated_at;
            return;
        }

        $this->expired = new DateTime($expired);
    }
1026216
public function setUpdatedAt($updated_at) {
        
        $this -> updated_at = $updated_at !== null ? new \DateTime($updated_at) : null;
        return $this;
    }
549356
public function dateModify($modify) {
        $modified = (array) $this->dateTime->modify($modify);
        $date = explode(' ', $modified['date']);

        return $this->setDate($date[0])->parseDate();
    }