Returns the age of the response.

@return int The age of the response in seconds
194630
public function getAge(): int
    {
        if (null !== $age = $this->getHeaderLine('Age')) {
            return (int) $age;
        }

        return \max(\time() - $this->getDate()->format('U'), 0);
    }
674035
public function getCacheLifetime()
    {
        if ($this->cacheLifetime === null) {
            $this->setCacheLifetime($this->config->get('concrete.i18n.community_translation.cache_lifetime', 3600));
        }

        return $this->cacheLifetime;
    }
1152186
public function getOnline()
    {
        if (!$this->getLastActivity()) return 9999;
        $now = new \DateTime();
        $interval = $now->diff($this->getLastActivity());
        return $interval->i;
    }
1177204
public function getTotalDuration(): float
    {
        $time = 0;
        foreach ($this->data['queries'] as $command) {
            $time += $command['duration'];
        }

        return $time;
    }
502341
public function getTempoEspera()
    {
        if ($this->tempoEspera) {
            return $this->secondsToDateInterval($this->tempoEspera);
        }
        
        $now = new DateTime();
        $interval = $now->diff($this->getDataChegada());

        return $interval;
    }
454715
function getDateTimeExpiration()
    {
        if (! $this->datetimeExpiration ) {
            if ($this->expiresIn) {
                // Maybe not include this field
                $exprDateTime = __( new \DateTime() )
                    ->add( new \DateInterval(sprintf('PT%sS', $this->expiresIn)) );

                $this->datetimeExpiration = $exprDateTime;
            }

        }


        return $this->datetimeExpiration;
    }
592933
public function getAge() : ?int 
    {
        if ( ! $this->hasAge()) {
            $this->setAge($this->getDefaultAge());
        }
        return $this->age;
    }
99918
def get_max_age(self):
        '''
        '''

        default_ttl = self.context.config.RESULT_STORAGE_EXPIRATION_SECONDS
        if self.context.request.max_age == 0:
            return self.context.request.max_age

        return default_ttl
554540
protected function getYears()
    {
        $intSecondsPerYear = ($this->isPositive()) ? DateTimeSpan::SECONDS_PER_YEAR : ((-1) * DateTimeSpan::SECONDS_PER_YEAR);
        $intYears = floor($this->intSeconds / $intSecondsPerYear);
        if ($this->isNegative()) {
            $intYears = (-1) * $intYears;
        }
        return $intYears;
    }
682748
public static function getLifetime()
    {
        Base::checkOpen();
        if (Base::driver() == 'file') {
            return intval(ini_get('session.cookie_lifetime'));
        }
        return Base::getSessionObject()->getLifetime();
    }
1313078
public function getDOSTimestamp()
    {
        $time = getdate($this->getTimestamp());

        if ($time['year'] < 1980) {
            $time['year']    = 1980;
            $time['mon']     = 1;
            $time['mday']    = 1;
            $time['hours']   = 0;
            $time['minutes'] = 0;
            $time['seconds'] = 0;
        }

        return (($time['year'] - 1980) << 25)
               | ($time['mon'] << 21)
               | ($time['mday'] << 16)
               | ($time['hours'] << 11)
               | ($time['minutes'] << 5)
               | ($time['seconds'] >> 1);
    }
889647
private function expiration() {

		if ( isset( $this->expiration ) ) {
			return $this->expiration;
		}

		/**
		 * Filters the expiration.
		 *
		 * @since 1.0.0
		 *
		 * @param int $expiration Expiration in seconds.
		 */
		$this->expiration = (int) apply_filters( self::FILTER_EXPIRATION, 300 );

		return $this->expiration;
	}
1001534
public function getLifetime() {
        if (!self::$lifetime) {
            $sessionExpirationHours = engineGet('Config', 'sessionExpirationHours', false);
            if (!$sessionExpirationHours)
                $sessionExpirationHours = 2;
            self::$lifetime = 60 * 60 * $sessionExpirationHours;
        }

        return self::$lifetime;
    }
644109
public function getStatus()
    {
        $speed = round($this->getSpeed(), 2);
        $remaining = $this->getRemaining();

        // Remaining time
        $remainingTime = $this->getFormatTime($remaining);

        // Handled
        $handled = str_pad($this->handled, $this->allCountLength, ' ', STR_PAD_LEFT);

        return "Handled: $handled/$this->all\tRemaining: $remainingTime\tSpeed: $speed/sec";
    }
31568
public function older()
	{
		return $this->live()
			->where('published_date', '<=', $this->published_date)
			->where('id', '<>', $this->id)
			->orderBy('published_date', 'desc')
			->orderBy('id', 'desc')
			->first();
	}
912818
protected function getCookieLifetime()
	{
		$config = $this->manager->getSessionConfig();

		return $config['expire_on_close'] ? 0 : Carbon::now()->addMinutes($config['lifetime']);
	}
352604
protected static function getTime() {
		$mtime = microtime();
		$mtime = explode(" ",$mtime); 
		$mtime = $mtime[1] + $mtime[0]; 
		return $mtime;
	}