Resets the date to end of the century and time to 23:59:59

@return static
777365
public function endOfCentury()
    {
        $year = $this->endOfYear()->year(($this->year - 1) - ($this->year - 1) % ChronosInterface::YEARS_PER_CENTURY + ChronosInterface::YEARS_PER_CENTURY)->year;

        return $this->modify("last day of december $year, 23:59:59");
    }
1139794
public function removeLast(): self
    {
        $tmpArray = $this->getArray();

        \array_pop($tmpArray);

        return static::create(
            $tmpArray,
            $this->iteratorClass,
            false
        );
    }
1359072
public function flushExpired()
    {
        foreach ($this->_hashes as $name => $hashes) {
            foreach ($hashes as $key => $hash) {
                $cookie = $this->_data[$hash];
                if ($cookie->expired()) {
                    unset($this->_data[$hash]);
                    unset($this->_names[$hash]);
                    unset($this->_hashes[$name][$key]);
                    if (!$this->_hashes[$name]) {
                        unset($this->_hashes[$name]);
                    }
                }
            }
        }
        return $this;
    }
141279
public function toNativeDateTime()
    {
        $year   = $this->getDate()->getYear()->toNative();
        $month  = $this->getDate()->getMonth()->getNumericValue();
        $day    = $this->getDate()->getDay()->toNative();
        $hour   = $this->getTime()->getHour()->toNative();
        $minute = $this->getTime()->getMinute()->toNative();
        $second = $this->getTime()->getSecond()->toNative();

        $dateTime = new \DateTime();
        $dateTime->setDate($year, $month, $day);
        $dateTime->setTime($hour, $minute, $second);

        return $dateTime;
    }
259862
public function reset() : self
    {
        $this->where = [];
        $this->joins = [];
        $this->group = [];
        $this->withr = [];
        $this->order = [];
        $this->having = [];
        $this->aliases = [];
        $this->li_of = [0,0,0];
        $this->qiterator = null;
        return $this;
    }
718373
public function reset()
    {
        $this->data = [];

        // Get the default values for the class from the table.
        foreach ((array) $this->getFields() as $k => $v) {
            $this->data[$k] = null;
        }

        return $this;
    }
427023
public function reset(): Matomo
    {
        $this->_period = self::PERIOD_DAY;
        $this->_date = '';
        $this->_rangeStart = 'yesterday';
        $this->_rangeEnd = null;

        return $this;
    }
402653
public function endOfDecade()
    {
        $year = $this->year - $this->year % ChronosInterface::YEARS_PER_DECADE + ChronosInterface::YEARS_PER_DECADE - 1;

        return $this->modify("last day of december $year, 23:59:59");
    }
1199685
public function clear()
    {
        $this->clearCountryCode();
        $this->clearNationalNumber();
        $this->clearExtension();
        $this->clearItalianLeadingZero();
        $this->clearNumberOfLeadingZeros();
        $this->clearRawInput();
        $this->clearCountryCodeSource();
        $this->clearPreferredDomesticCarrierCode();
        return $this;
    }
604684
public function getEnd() {
		return Util::toISO8601($this->getEndTimestamp(), Util::UTC, $this->getEvent()->getTimezone());
	}
215226
protected function reset()
    {
        $this->element = null;
        $this->arguments = [];
        $this->methods = [];
        $this->cloneElement = false;
        $this->translatableIndicator = false;

        return $this;
    }
1019107
public function reset()
    {
        $this->table = '';
        $this->columns = [];
        $this->joins = [];
        $this->wheres = [];
        $this->whereIn = [];
        $this->groupBy = false;
        $this->orderBy = false;
        $this->offset = 0;
        $this->limit = 10;
        $this->fields = [];
        return $this;
    }
480440
public function toNativeDateTime()
    {
        $year  = $this->getYear()->toNative();
        $month = $this->getMonth()->getNumericValue();
        $day   = $this->getDay()->toNative();

        $date = new \DateTime();
        $date->setDate($year, $month, $day);
        $date->setTime(0, 0, 0);

        return $date;
    }
695571
public function endOfMillennium()
    {
        $year = $this->year - 1 - ($this->year - 1) % static::YEARS_PER_MILLENNIUM + static::YEARS_PER_MILLENNIUM;

        return $this->setDate($year, 12, 31)->endOfDay();
    }
769913
public function startOfCentury()
    {
        $year = $this->year - ($this->year - 1) % static::YEARS_PER_CENTURY;

        return $this->setDate($year, 1, 1)->startOfDay();
    }
418151
public function reset()
	{
		$this->_table      = null;
		$this->_join       = array();
		$this->_set        = array();
		$this->_where      = array();
		$this->_order_by   = array();
		$this->_limit      = null;
		$this->_last_join  = null;
		$this->_parameters = array();

		return $this;
	}
76865
public void reset() {
    lastReset = new Date();

    if (counters != null) {
      synchronized (counters) {
        counters.clear();
      }
    }

    if (chronos != null) {
      synchronized (chronos) {
        chronos.clear();
      }
    }

    if (stats != null) {
      synchronized (stats) {
        stats.clear();
      }
    }
  }