B2G/gecko/dom/mobilemessage/src/ril/WspPduHelper.jsm
/**
   * @param data
   *        A wrapped object to store encoded raw data.
   * @param date
   *        A Date object.
   */
@param data
A wrapped object to store encoded raw data.
@param date
A Date object.
@param data A wrapped object to store encoded raw data . @param date A Date object .
function encode(data, date) {
    let seconds = date.getTime() / 1000;
    if (seconds < 0) {
      throw new CodeError("Date-value: negative seconds " + seconds);
    }
    LongInteger.encode(data, seconds);
  }
function encode ( data , date ) { let seconds = date . getTime ( ) / 1000 ; if ( seconds < 0 ) { throw new CodeError ( "Date-value: negative seconds " + seconds ) ; } LongInteger . encode ( data , seconds ) ; }
@param data
        A wrapped object to store encoded raw data.
@param data A wrapped object to store encoded raw data .