public final static byte[] encodeTime(java.sql.Time d) { datetime dt = new datetime(d); return dt.toTimeBytes();
public final static java.sql.Time encodeTime(java.sql.Time d, Calendar cal) { if (cal == null) { return d; } else { cal.setTime(d); return new java.sql.Time(cal.getTime().getTime()); }
    public final static byte[] encodeTime(java.sql.Time d) {        datetime dt = new datetime(d);        return dt.toTimeBytes();    }