javascript/selenium-core/scripts/htmlutils.js
function getTimeoutTime(timeout) {
    var now = new Date().getTime();
    var timeoutLength = parseInt(timeout);

    if (isNaN(timeoutLength)) {
        throw new SeleniumError("Timeout is not a number: '" + timeout + "'");
    }

    return now + timeoutLength;
}
function getTimeoutTime(timeout) {
    var now = new Date().getTime();
    var timeoutLength = parseInt(timeout);

    if (isNaN(timeoutLength)) {
        throw new SeleniumError("Timeout is not a number: '" + timeout + "'");
    }

    return now + timeoutLength;
}
function getTimeoutTime ( timeout ) { var now = new Date ( ) . getTime ( ) ; var timeoutLength = parseInt ( timeout ) ; if ( isNaN ( timeoutLength ) ) { throw new SeleniumError ( "Timeout is not a number: '" + timeout + "'" ) ; } return now + timeoutLength ; }
Returns the absolute time represented as an offset of the current time.
Throws a SeleniumException if timeout is invalid.

@param timeout  the number of milliseconds from "now" whose absolute time
to return
Returns the absolute time represented as an offset of the current time . Throws a SeleniumException if timeout is invalid .