Delete all link data that are having a "delete_after" column which is lteq than the one passed in parameter.

@param \DateTime $dateTime The date
555689
public function deleteByDeleteAfter(\DateTime $dateTime)
    {
        $connection  = $this->getConnection();
        $deleteAfter = $this->formatDate($dateTime);
        $connection->delete($this->getMainTable(), $connection->quoteInto('delete_after <= ?', $deleteAfter));
    }
654907
public function contains(DateTime $dateTime) : bool
    {
        return $this->from->isEarlierThanOrEqualTo($dateTime) && $this->until->isLaterThan($dateTime);
    }
558047
public function setHiddenAfterDateTime(\DateTimeInterface $dateTime = null)
    {
        if ($this->hiddenAfterDateTime != $dateTime) {
            $this->hiddenAfterDateTime = $dateTime;
            $this->addOrUpdate();
        }
    }
702622
private function formatDate(\DateTime $datetime = null, $format = 'Y_m_d')
    {
        if (null == $datetime) {
            $datetime = new \DateTime('now');
        }

        return $datetime->format($format);
    }
694974
public function formatDatetimeObject(\DateTime $datetime, $format) {
		$format = $this->getFormat($format) ? : $format;
		$isStashed = $this->stashCustomFormatOptions($format);
		$result = $datetime->format($format);
		if($isStashed) {
			$this->applyCustomFormatOptions($result, $datetime);
		}
		return $result;
	}
734490
public function buildDateTimeRawValue(\DateTime $dateTime = null) {
		if (null === $dateTime) {
			return null;
		}
		
		return DateUtils::formatDateTime($dateTime, MysqlDateTimeColumn::FORMAT_DATE_TIME);
	}
472815
public function filterByApprovedAfter(\DateTime $date)
    {
        $this->query->andWhere(
             'cv.cvDateApproved >= ' . $this->query->createNamedParameter($date->format('Y-m-d H:i-s'))
        );
    }
1223007
public function setReferenceTime(\DateTimeInterface $dateTime)
    {
        $dt = $dateTime->format(DATE_ISO8601);
        $this->add('reference_time', $dt);
    }
53936
public static function fromDateTime(DateTime $dateTime)
    {
        $date = new Date();
        $date->setYear(intval($dateTime->format('Y')));
        $date->setMonth(intval($dateTime->format('m')));
        $date->setDay(intval($dateTime->format('d')));

        $result = new AdManagerDateTime();
        $result->setDate($date);
        $result->setHour(intval($dateTime->format('H')));
        $result->setMinute(intval($dateTime->format('i')));
        $result->setSecond(intval($dateTime->format('s')));
        $result->setTimeZoneID($dateTime->format('e'));

        return $result;
    }
442564
private static function validateDateTime($datetime)
	    {
	        if ($datetime instanceof DateTimeInterface || $datetime instanceof DateTime) {
	            return $datetime;
	        }

	        return new DateTime((string) $datetime);
	    }
943252
public static function from(\DateTime $dateTime)
    {
        return new self(
            new Hour($dateTime->format('H')),
            new Minute($dateTime->format('i')),
            new Second($dateTime->format('s'))
        );
    }
654199
public function buildDateTimeRawValue(\DateTime $dateTime = null) {
		if (null === $dateTime) return null;
		return DateUtils::formatDateTime($dateTime, SqliteDateTimeColumn::FORMAT_DATE_TIME);
	}
496442
private function isDatetime($dateTime)
    {
        if (preg_match('/^(\d{4})-(\d\d?)-(\d\d?) (\d\d?):(\d\d?):(\d\d?)$/', $dateTime, $matches)) {
            return checkdate($matches[2], $matches[3], $matches[1]) && $matches[4] / 24 < 1 && $matches[5] / 60 < 1 && $matches[6] / 60 < 1;
        }
        return false;
    }
962046
public function endsLater(\DateTime $date) {
    $later = FALSE;

    $t2 = $this->end_date->getTimeStamp();

    $t4 = $date->getTimestamp();

    if ($t2 > $t4) {
      $later = TRUE;
    }

    return $later;
  }
335395
public static function createByDateTime(\DateTime $dateTime)
    {
        $object = new static;
        $object->id = $object->createId($dateTime->format('U'));

        return $object;
    }
200161
public function findEndBefore(\DateTime $dateTime)
    {
        return $this->createQueryBuilder('t')
            ->where('t.lastExecution IS NULL OR t.lastExecution > :dateTime')
            ->setParameter('dateTime', $dateTime)
            ->getQuery()
            ->getResult();
    }
543163
private function clearExpiredKey($key, DateTime $dateTime)
    {
        if (self::$registry[$key]['expires'] < $dateTime) {
            unset(self::$registry[$key]);
        }
    }