amfUtils.js
function amf0encDate(ts) {
    var buf = new Buffer(11);
    buf.writeUInt8(0x0B, 0);
    buf.writeInt16BE(0, 1);
    buf.writeDoubleBE(ts, 3);
    return buf;
}
function amf0encDate(ts) {
    var buf = new Buffer(11);
    buf.writeUInt8(0x0B, 0);
    buf.writeInt16BE(0, 1);
    buf.writeDoubleBE(ts, 3);
    return buf;
}
function amf0encDate ( ts ) { var buf = new Buffer ( 11 ) ; buf . writeUInt8 ( 0x0B , 0 ) ; buf . writeInt16BE ( 0 , 1 ) ; buf . writeDoubleBE ( ts , 3 ) ; return buf ; }
AMF0 Encode Date
@param ts
@returns {Buffer}
AMF0 Encode Date