encoder.js
function encodePrimitiveDate( encoder, object ) {

	// We have a date primitive
	encoder.stream8.write( pack1b( PRIM_OP.OBJECT | OBJ_OP.PRIMITIVE | OBJ_PRIM.DATE ) );

	// Save date and timezone
	encoder.stream64.write( pack8f( Number(object) ) );
	encoder.stream16.write( pack1b( object.getTimezoneOffset() / 10, true ) );

}
function encodePrimitiveDate( encoder, object ) {

	// We have a date primitive
	encoder.stream8.write( pack1b( PRIM_OP.OBJECT | OBJ_OP.PRIMITIVE | OBJ_PRIM.DATE ) );

	// Save date and timezone
	encoder.stream64.write( pack8f( Number(object) ) );
	encoder.stream16.write( pack1b( object.getTimezoneOffset() / 10, true ) );

}
function encodePrimitiveDate ( encoder , object ) { // We have a date primitive encoder . stream8 . write ( pack1b ( PRIM_OP . OBJECT | OBJ_OP . PRIMITIVE | OBJ_PRIM . DATE ) ) ; // Save date and timezone encoder . stream64 . write ( pack8f ( Number ( object ) ) ) ; encoder . stream16 . write ( pack1b ( object . getTimezoneOffset ( ) / 10 , true ) ) ; }
Encode primitive date
Encode primitive date