public static function isTimestamp($string)
    {
        if (substr($string, 0, 5) == "/Date") {
            return true;
        }

        try {
            new DateTime('@' . $string);
        } catch (Exception $e) {
            return false;
        }
        return true;
    }
public static function isTimestamp($string)
    {
        if (substr($string, 0, 5) == "/Date") {
            return true;
        }

        try {
            new DateTime('@' . $string);
        } catch (Exception $e) {
            return false;
        }
        return true;
    }
public static function isTimestamp ( $ string ) { if ( substr ( $ string , 0 , 5 ) == "/Date" ) { return true ; } try { new DateTime ( '@' . $ string ) ; } catch ( Exception $ e ) { return false ; } return true ; }
Determine if the string is a Unix Timestamp
@link(Stack Overflow, http://stackoverflow.com/questions/2524680/check-whether-the-string-is-a-unix-timestamp)
@param  string $string
@return boolean
Determine if the string is a Unix Timestamp