lib/types/Date.js
/**
     * IDL Date values are represented by ECMAScript Date objects.
     *
     */
IDL Date values are represented by ECMAScript Date objects.
IDL Date values are represented by ECMAScript Date objects .
function converter(V) {
        if (!V instanceof Date) {
            throw new TypeError();
        }
        if (isNaN(V.getTime())) {
            return undefined;
        }
        return V.getTime();
    }
function converter ( V ) { if ( ! V instanceof Date ) { throw new TypeError ( ) ; } if ( isNaN ( V . getTime ( ) ) ) { return undefined ; } return V . getTime ( ) ; }
IDL Date values are represented by ECMAScript Date objects.
IDL Date values are represented by ECMAScript Date objects .
//var nativeBrand = Object.prototype.toString.apply(V); //If V is not an ECMAScript Date object, then throw a TypeError. //If the time value of V is NaN, then return the undefined //IDL Date value. //Return the IDL Date value that represents the same time //value as V.