src/SecureString.php
protected function verifyTimestamp($timestamp, $throw = false) {
        if (!is_numeric($timestamp)) {
            return (bool)$this->exception($throw, "Invalid timestamp.", 403);
        }
        $intTimestamp = (int)$timestamp;
        $now = time();
        if ($intTimestamp + $this->timestampExpiry <= $now) {
            return (bool)$this->exception($throw, "The timestamp has expired.", 403);
        }

        return true;
    }
protected function verifyTimestamp($timestamp, $throw = false) {
        if (!is_numeric($timestamp)) {
            return (bool)$this->exception($throw, "Invalid timestamp.", 403);
        }
        $intTimestamp = (int)$timestamp;
        $now = time();
        if ($intTimestamp + $this->timestampExpiry <= $now) {
            return (bool)$this->exception($throw, "The timestamp has expired.", 403);
        }

        return true;
    }
Verify that a timestamp hasn't expired.

@param string $timestamp The unix timestamp to verify.
@param bool $throw Whether or not to throw an exception on error.
@return bool Returns true if the timestamp is valid or false otherwise.