src/Vatsimphp/Parser/DataParser.php
protected function timestampHasExpired($ts, $expire)
    {
        if (empty($expire)) {
            return false;
        }
        $diff = time() - $ts;
        if ($diff > $expire) {
            return true;
        }

        return false;
    }
protected function timestampHasExpired($ts, $expire)
    {
        if (empty($expire)) {
            return false;
        }
        $diff = time() - $ts;
        if ($diff > $expire) {
            return true;
        }

        return false;
    }
protected function timestampHasExpired ( $ ts , $ expire ) { if ( empty ( $ expire ) ) { return false ; } $ diff = time ( ) - $ ts ; if ( $ diff > $ expire ) { return true ; } return false ; }
Check if given timestamp is expired.

@param int $ts

@return bool
Check if given timestamp is expired .