public void writeBinary(final PacketOutputStream writeBuffer){
  calendar=Calendar.getInstance();
  calendar.setTime(time);
  calendar.set(Calendar.DAY_OF_MONTH,1);
  writeBuffer.writeTimeLength(calendar,fractionalSeconds);
}

public void writeBinary ( final PacketOutputStream writeBuffer ) { calendar = Calendar . getInstance ( ) ; calendar . setTime ( time ) ; calendar . set ( Calendar . DAY_OF_MONTH , 1 ) ; writeBuffer . writeTimeLength ( calendar , fractionalSeconds ) ; }
write time in binary format .
