protected function isTimestampValid($time, $now = null)
    {
        if (empty($now)) {
            $now = $this->getCurrentTimestamp();
        }

        return $time <= $now
            && $time > $now - 20 * 365 * 86400;
    }
protected function isTimestampValid($time, $now = null)
    {
        if (empty($now)) {
            $now = $this->getCurrentTimestamp();
        }

        return $time <= $now
            && $time > $now - 20 * 365 * 86400;
    }
protected function isTimestampValid ( $ time , $ now = null ) { if ( empty ( $ now ) ) { $ now = $ this -> getCurrentTimestamp ( ) ; } return $ time <= $ now && $ time > $ now - 20 * 365 * 86400 ; }
Returns true if the timestamp is valid ie. timestamp is sometime in the last 10 years and is not in the future.

@param $time int Timestamp to test
@param $now int Current timestamp
@return bool
Returns true if the timestamp is valid ie . timestamp is sometime in the last 10 years and is not in the future .