amfUtils.js
function amf3encDate(ts) {
    var buf = new Buffer(1);
    buf.writeUInt8(0x8, 0);
    var tsBuf = new Buffer(8);
    tsBuf.writeDoubleBE(ts, 0);
    return Buffer.concat([buf, amf3encUI29(1), tsBuf]); // We always do 1
}
function amf3encDate(ts) {
    var buf = new Buffer(1);
    buf.writeUInt8(0x8, 0);
    var tsBuf = new Buffer(8);
    tsBuf.writeDoubleBE(ts, 0);
    return Buffer.concat([buf, amf3encUI29(1), tsBuf]); // We always do 1
}
function amf3encDate ( ts ) { var buf = new Buffer ( 1 ) ; buf . writeUInt8 ( 0x8 , 0 ) ; var tsBuf = new Buffer ( 8 ) ; tsBuf . writeDoubleBE ( ts , 0 ) ; return Buffer . concat ( [ buf , amf3encUI29 ( 1 ) , tsBuf ] ) ; // We always do 1 }
AMF3 Encode Date
@param ts
@returns {Buffer}
AMF3 Encode Date