public function getAge()
    {
        if ($this->headers->has('Age')) {
            return $this->headers->get('Age');
        } else {
            $dateTimestamp = $this->headers->get('Date')->getTimestamp();
            $nowTimestamp = $this->now->getTimestamp();
            return ($nowTimestamp > $dateTimestamp) ? ($nowTimestamp - $dateTimestamp) : 0;
        }
    }
public function getAge()
    {
        if ($this->headers->has('Age')) {
            return $this->headers->get('Age');
        } else {
            $dateTimestamp = $this->headers->get('Date')->getTimestamp();
            $nowTimestamp = $this->now->getTimestamp();
            return ($nowTimestamp > $dateTimestamp) ? ($nowTimestamp - $dateTimestamp) : 0;
        }
    }
public function getAge ( ) { if ( $ this -> headers -> has ( 'Age' ) ) { return $ this -> headers -> get ( 'Age' ) ; } else { $ dateTimestamp = $ this -> headers -> get ( 'Date' ) -> getTimestamp ( ) ; $ nowTimestamp = $ this -> now -> getTimestamp ( ) ; return ( $ nowTimestamp > $ dateTimestamp ) ? ( $ nowTimestamp - $ dateTimestamp ) : 0 ; } }
Returns the age of this responds in seconds.

The age is determined either by an explicitly set Age header or by the
difference between Date and "now".

Note that, according to RFC 2616 / 13.2.3, the presence of an Age header implies
that the response is not first-hand. You should therefore only explicitly set
an Age header if this is the case.

@return integer The age in seconds
@deprecated Since Flow 5.1, directly get the Age header
@see getHeader()
Returns the age of this responds in seconds .