return encodeLong((value.getTime()/1000)*1000 + value.getNanos() / 1000000);
long millis = (value.getTime()/1000)*1000 + value.getNanos() / 1000000;         byte[] date = encodeDate(new java.sql.Date(millis)); byte[] time = encodeTime(new java.sql.Time(millis));  byte[] result = new byte[date.length + time.length]; System.arraycopy(date, 0, result, 0, date.length); System.arraycopy(time, 0, result, date.length, time.length);  return result;
    public final static byte[] encodeTimestamp(java.sql.Timestamp value){        // some versions of JDK (1.4.1 win) return millis with getTime() when        // api docs say it only returns integral seconds         // we have to take millis out and use getNanos for every version to work OK         return encodeLong((value.getTime()/1000)*1000 + value.getNanos() / 1000000);    }